diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-01-10 12:41:33 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-10 17:40:57 -0800 |
commit | 68c2ec7f43c4dc16833ff58af76ab20e9cdfad17 (patch) | |
tree | 8efa3282651594bfbcf5f3a5de142088d8682e2a /Documentation/technical/pack-heuristics.txt | |
parent | Merge branch 'maint-1.5.6' into maint-1.6.0 (diff) | |
download | tgif-68c2ec7f43c4dc16833ff58af76ab20e9cdfad17.tar.xz |
format-patch: show patch text for the root commit
Even without --root specified, if the range given on the command line
happens to include a root commit, we should include its patch text in the
output.
This fix deliberately ignores log.showroot configuration variable because
"format-patch" and "log -p" can and should behave differently in this
case, as the former is about exporting a part of your history in a form
that is replayable elsewhere and just giving the commit log message
without the patch text does not make any sense for that purpose.
Noticed and fix originally attempted by Nathan W. Panike; credit goes to
Alexander Potashev for injecting sanity to my initial (broken) fix that
used the value from log.showroot configuration, which was misguided.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/pack-heuristics.txt')
0 files changed, 0 insertions, 0 deletions