Files
git/builtin
Jeff King 9eac5954e8 diff: factor out --follow pathspec check
In --follow mode, we require exactly one pathspec. We check this
condition in two places:

  - in diff_setup_done(), we complain if --follow is used with an
    inapropriate pathspec

  - in git-log's revision "tweak" function, we enable log.follow only if
    the pathspec allows it

The duplication isn't a big deal right now, since the logic is so
simple. But in preparation for it becoming more complex, let's pull it
into a shared function.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-06-03 10:34:25 +09:00
..
2023-02-22 14:55:45 -08:00
2022-04-06 09:42:14 -07:00
2023-01-13 14:17:14 -08:00
2023-01-05 15:07:22 +09:00
2023-02-22 14:55:45 -08:00
2023-02-22 14:55:45 -08:00
2021-10-28 09:57:09 -07:00
2022-12-14 15:55:46 +09:00
2022-11-23 11:22:24 +09:00
2023-06-03 10:34:25 +09:00
2023-02-22 14:55:45 -08:00
2022-11-16 14:57:32 -05:00
2023-02-15 17:11:53 -08:00
2023-02-22 14:55:45 -08:00
2023-02-22 14:55:45 -08:00
2022-12-18 11:48:26 +09:00