-
Notifications
You must be signed in to change notification settings - Fork 0
migrating excludes_file #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,6 +98,7 @@ struct repo_config_values { | |
| int precomposed_unicode; | ||
| int core_sparse_checkout_cone; | ||
| int warn_on_object_refname_ambiguity; | ||
| char *excludes_file; | ||
|
|
||
| /* section "sparse" config values */ | ||
| int sparse_expect_files_outside_of_patterns; | ||
|
|
@@ -133,8 +134,16 @@ int git_default_config(const char *, const char *, | |
| int git_default_core_config(const char *var, const char *value, | ||
| const struct config_context *ctx, void *cb); | ||
|
|
||
| /* | ||
| * TODO: This still relies on the global state. | ||
| * It will be moved to repo_config_values in the subsequent commit. | ||
| */ | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I forgot to remove it in commit 2 |
||
| const char *repo_excludes_file(struct repository *repo); | ||
|
|
||
| void repo_config_values_init(struct repo_config_values *cfg); | ||
|
|
||
| void repo_config_values_clear(struct repository *repo); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like it is clearing only |
||
|
|
||
| /* | ||
| * TODO: All the below state either explicitly or implicitly relies on | ||
| * `the_repository`. We should eventually get rid of these and make the | ||
|
|
@@ -208,7 +217,6 @@ extern char *git_log_output_encoding; | |
|
|
||
| extern char *editor_program; | ||
| extern char *askpass_program; | ||
| extern char *excludes_file; | ||
|
|
||
| /* | ||
| * The character that begins a commented line in user-editable file | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To save a line, but still have a blank line after the declaration, maybe something like: