wrong expectation from "git log -p"
If running "git log -p parse-options.*", the last commit is df217ed6430efe444a09fffdafd39720ae3f9864
There are the changes this commit makes towards parse-options.*.
I was expecting to see the full commit with all changes and not only towards the 2 files - only including the two files.
Is my expactation wrong or is this a bug?
Thomas
Quoted 8 lines · Thomas Spura
If running "git log -p parse-options.*", the last commit is
df217ed6430efe444a09fffdafd39720ae3f9864
There are the changes this commit makes towards parse-options.*.I was expecting to see the full commit with all changes and not only towards the 2 files - only including the two files.
Is my expactation wrong or is this a bug?
Time to run "man git-log" and look for --full-diff, perhaps?
PATCH 1/1 completion: Add --full-diff to log/gitk options
---
Quoted 6 lines · Junio C Hamano
Quoted 4 lines · Thomas Spura
If running "git log -p parse-options.*", the last commit is
df217ed6430efe444a09fffdafd39720ae3f9864
There are the changes this commit makes towards parse-options.*.
Quoted 6 lines
Quoted 4 lines
I was expecting to see the full commit with all changes and not only towards the 2 files - only including the two files.
Is my expactation wrong or is this a bug?
Time to run "man git-log" and look for --full-diff, perhaps?
While this patch won't do much to help people find the option, perhaps those who learn about it will appreciate not having to type it. :)
I *think* __git_log_gitk_options is the proper place for it, but it's early in the a.m. and I'm not averse to being proved wrong.
contrib/completion/git-completion.bash | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/completion/git-completion.bash +1 -1
@@ -1117,7 +1117,7 @@ __git_log_common_options=" " # Options that go well for log and gitk (not shortlog) __git_log_gitk_options=" - --dense --sparse --full-history + --dense --sparse --full-diff --full-history --simplify-merges --simplify-by-decoration --left-right "
Signature · 6 lines
1.6.3.1 -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Going to hell when I die would just be redundant.
Re: [PATCH] completion: Add --full-diff to log/gitk options
Quoted 2 lines · Todd Zullinger
I *think*
__git_log_gitk_optionsis the proper place for it, but it's early in the a.m. and I'm not averse to being proved wrong.
[...]
contrib/completion/git-completion.bash __git_log_common_options=" · line 1120
Quoted 4 lines
# Options that go well for log and gitk (not shortlog) __git_log_gitk_options="
contrib/completion/git-completion.bash +1
-1- --dense --sparse --full-history + --dense --sparse --full-diff --full-history
Gitk has its own setting in the Preferences called "limit diffs to listed paths", and ignores this option, so it should go directly in _git_log.
Signature · 2 lines
Thomas Rast
trast@{inf,student}.ethz.chPATCH v2 1/1 completion: Add --full-diff to log options
---
Quoted 4 lines · Thomas Rast
Quoted 2 lines · Todd Zullinger
I *think*
__git_log_gitk_optionsis the proper place for it, but it's early in the a.m. and I'm not averse to being proved wrong.[...]
Quoted 8 lines
Review
Quoted 4 lines
# Options that go well for log and gitk (not shortlog) __git_log_gitk_options="
(quoted diff) +1
-1- --dense --sparse --full-history + --dense --sparse --full-diff --full-historyGitk has its own setting in the Preferences called "limit diffs to listed paths", and ignores this option, so it should go directly in
_git_log.
Ahh, thanks Thomas.
contrib/completion/git-completion.bash | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/completion/git-completion.bash +1 -1
@@ -1157,7 +1157,7 @@ _git_log () $__git_log_shortlog_options $__git_log_gitk_options --root --topo-order --date-order --reverse - --follow + --follow --full-diff --abbrev-commit --abbrev= --relative-date --date= --pretty= --format= --oneline
Signature · 8 lines
1.6.3.1
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have to decide between two equally frightening options. If I wanted
to do that, I'd vote.
-- DuckmanRe: [PATCH v2] completion: Add --full-diff to log options
Quoted 1 line · Todd Zullinger
Signed-off-by Todd Zullinger <[email protected]>
I was just missing this completion for "git log" myself.
Quoted 18 lines
--- contrib/completion/git-completion.bash | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)contrib/completion/git-completion.bash +1
-1@@ -1157,7 +1157,7 @@ _git_log () $__git_log_shortlog_options $__git_log_gitk_options --root --topo-order --date-order --reverse - --follow + --follow --full-diff --abbrev-commit --abbrev= --relative-date --date= --pretty= --format= --oneline