From: zen96285 <zen96285@gmail.com>
The git log documentation says "The default option is 'short'." This is wrong. After testing, the default value of '--decorate' is 'auto', not 'short'.
There is no difference between 'auto' and 'short' in terminal, but there is a significant difference in how they behave in the shell.The information generated by the 'short' can be saved in shell variables, while the 'auto' can't.
Signed-off-by: AndyAo Zen96285@gmail.com
---
describe-doc:fix a obscure error description in the git log documenta…
The git log documentation says "The default option is 'short'." This is
wrong. After testing, the default value of '--decorate' is 'auto', not
'short'.
There is no difference between 'auto' and 'short' in terminal, but there
is a significant difference in how they behave in the shell.The
information generated by the 'short' can be saved in shell variables,
while the 'auto' can't.
Signed-off-by: AndyAo Zen96285@gmail.comPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1030%2FAndy-AO%2Ffix_a_obscure_error_description_in_the_git_log_documentation-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1030/Andy-AO/fix_a_obscure_error_description_in_the_git_log_documentation-v1
Pull-Request: https://github.com/git/git/pull/1030
Documentation/git-log.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)