summaryrefslogtreecommitdiff
path: root/builtin/index-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-08-20 21:14:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-20 21:23:05 (GMT)
commitb130c706ecfaa370259a476c2b754fb4c4a1a180 (patch)
treea3b8d3cddebd54dca9fbff1ee02e3245811f662b /builtin/index-pack.c
parentff86faf2fa02bc21933c9e1dcc75c8d81b3e104a (diff)
downloadgit-b130c706ecfaa370259a476c2b754fb4c4a1a180.zip
git-b130c706ecfaa370259a476c2b754fb4c4a1a180.tar.gz
git-b130c706ecfaa370259a476c2b754fb4c4a1a180.tar.bz2
log: rename "tweak" helpers
The revision walking API allows the callers to tweak its configuration at the last minute, immediately after all the revision and pathspec parameters are parsed from the command line but before the default actions are decided based on them, by defining a "tweak" callback function when calling setup_revisions(). Traditionally, this facility was used by "git show" to turn on the patch output "-p" by default when no diff output option (e.g. "--raw" or "-s" to squelch the output altogether) is given on the command line, and further give dense combined diffs "--cc" for merge commits when no option to countermand it (e.g. "-m" to show pairwise patches). Recently, "git log" started using the same facility, but we named the callback function "default_follow_tweak()", as if the only kind of tweaking we would want for "git log" will forever be limited to turning "--follow" on by default when told by a configuration variable. That was myopic. Rename it to more generic name "log_setup_revisions_tweak()", and match the one used by show "show_setup_revisions_tweak()". Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/index-pack.c')
0 files changed, 0 insertions, 0 deletions