diff options
author | Pranit Bauva <pranit.bauva@gmail.com> | 2016-05-05 15:20:02 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-10 10:25:52 -0700 |
commit | aaab84203b9654fb73df41d3cb71a6aad3a091fa (patch) | |
tree | 1c3a054dd95694de923756d99fee1c068d15d498 /Documentation | |
parent | de45dbb8188ecbc74c1e8a95bf861c6acdda393d (diff) | |
download | git-aaab84203b9654fb73df41d3cb71a6aad3a091fa.tar.gz |
commit: add a commit.verbose config variablepb/commit-verbose-config
Add commit.verbose configuration variable as a convenience for those
who always prefer --verbose.
Add tests to check the behavior introduced by this commit and also to
verify that behavior of status doesn't break because of this commit.
Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/config.txt | 4 | ||||
-rw-r--r-- | Documentation/git-commit.txt | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index 42d2b50477..8bf60409f7 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -1110,6 +1110,10 @@ commit.template:: "`~/`" is expanded to the value of `$HOME` and "`~user/`" to the specified user's home directory. +commit.verbose:: + A boolean or int to specify the level of verbose with `git commit`. + See linkgit:git-commit[1]. + credential.helper:: Specify an external helper to be called when a username or password credential is needed; the helper may consult external diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt index 9ec6b3cc17..d474226eb7 100644 --- a/Documentation/git-commit.txt +++ b/Documentation/git-commit.txt @@ -290,7 +290,8 @@ configuration variable documented in linkgit:git-config[1]. what changes the commit has. Note that this diff output doesn't have its lines prefixed with '#'. This diff will not be a part - of the commit message. + of the commit message. See the `commit.verbose` configuration + variable in linkgit:git-config[1]. + If specified twice, show in addition the unified diff between what would be committed and the worktree files, i.e. the unstaged |