log: rename "tweak" helpers
commitb130c706ecfaa370259a476c2b754fb4c4a1a180
authorJunio C Hamano <gitster@pobox.com>
Thu, 20 Aug 2015 21:14:46 +0000 (20 14:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Aug 2015 21:23:05 +0000 (20 14:23 -0700)
treea3b8d3cddebd54dca9fbff1ee02e3245811f662b
parentff86faf2fa02bc21933c9e1dcc75c8d81b3e104a
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>
builtin/log.c