Reputation: 2192
I can verbose the output of the git commit
command by default with git config --global commit.verbose true
.
This makes an entry in the .gitconfig
:
[commit]
verbose = true
I tried the same with the git add
command:
[add]
verbose = true
resp.: git config --global add.verbose true
However, this does not work (also tab-completion doesn't show me the configuration option add.verbose
whereas it does for commit.verbose
).
Does anybody know if there is an option to enable this function?
I am aware of work-arounds like setting aliases, but it remains a work-around and not a 100% solution.
Upvotes: 2
Views: 567
Reputation: 786
Not a direct solution, but if your main concern is to obtain concise information about your actions, you can try
git add --interactive
Upvotes: -1
Reputation: 1329592
Strange: the need for a similar "add.verbose
" config never came up in the Git mailing-list.
"commit.verbose
" itself introduced in commit aaab842, May 2016, Git v2.9.0-rc0 by Pranit Bauva (pranitbauva1997
), as part of the 'pb/commit-verbose-config
' patch.
See commit aaab842, commit de45dbb, commit e0070e8, commit 98baeb7, commit 7d17715 (05 May 2016), and commit 36e6a5b, commit 8425b7e (12 Apr 2016) by Pranit Bauva (pranitbauva1997
).
Helped-by: Junio C Hamano (gitster
), and Eric Sunshine (sunshineco
).
(Merged by Junio C Hamano -- gitster
-- in commit 5d5f1c2, 23 May 2016)
I don't know why the same feature was not considered for git add
.
So yes, alias or git
script wrapper as shown here is a good alternative, but not, as you noted, a complete solution..
Upvotes: 2