Skip to content
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

Fix reading the value of status.showUntrackedFiles #1211

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

storoj
Copy link
Contributor

@storoj storoj commented Jul 6, 2022

It seems like git config --list prints everything in lowercase. That results in tig not recognising the value of status.showUntrackedFiles since it's being printed as status.showuntrackedfiles.

@@ -1484,7 +1484,7 @@ read_repo_config_option(char *name, size_t namelen, char *value, size_t valuelen
else if (!strcmp(name, "diff.noprefix"))
parse_bool(&opt_diff_noprefix, value);

else if (!strcmp(name, "status.showUntrackedFiles"))
else if (!strcmp(name, "status.showuntrackedfiles"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice fix, thanks!
If possible, could you update the commit subject (the first line in the commit message) to mention status.showUntrackedFiles like the PR subject does? The commit subject will appear in the release notes (via git-shortlog).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

It seems like `git config --list` prints everything in lowercase. That results in `tig` not recognising the value of `status.showUntrackedFiles` since it's being printed as `status.showuntrackedfiles`.
@koutcher koutcher merged commit 96d7223 into jonas:master Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants