diff options
author | Jacob Keller <jacob.keller@gmail.com> | 2017-01-18 15:06:05 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-23 18:33:17 -0800 |
commit | 290be6674a4c89594105faa19061523e7380d586 (patch) | |
tree | d94004e4b7b6c4a1e6d6700b6549c52b8d6c4e85 /builtin/repack.c | |
parent | doc: add documentation for OPT_STRING_LIST (diff) | |
download | tgif-290be6674a4c89594105faa19061523e7380d586.tar.xz |
name-rev: extend --refs to accept multiple patterns
Teach git name-rev to take multiple --refs stored as a string list of
patterns. The list of patterns will be matched inclusively, and each ref
only needs to match one pattern to be included. A ref will only be
excluded if it does not match any of the given patterns. Additionally,
if any of the patterns would allow abbreviation, then we will abbreviate
the ref, even if another pattern is more strict and would not have
allowed abbreviation on its own.
Add tests and documentation for this change. The tests expected output
is dynamically generated. This is in order to avoid hard-coding
a commit object name in the test results (as the expected output is to
simply leave the commit object unnamed).
Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/repack.c')
0 files changed, 0 insertions, 0 deletions