diff options
author | Jacob Keller <jacob.keller@gmail.com> | 2017-01-18 15:06:06 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-23 18:33:17 -0800 |
commit | 96415b49dc4e10b64c014516a3f7cd9a51ed5269 (patch) | |
tree | 176b007e96a7cc390e217e2c8a1950ae2c7b6eef /Documentation/howto/revert-a-faulty-merge.txt | |
parent | name-rev: extend --refs to accept multiple patterns (diff) | |
download | tgif-96415b49dc4e10b64c014516a3f7cd9a51ed5269.tar.xz |
name-rev: add support to exclude refs by pattern match
Extend git-name-rev to support excluding refs which match shell patterns
using --exclude. These patterns can be used to limit the scope of refs
by excluding any ref that matches one of the --exclude patterns. A ref
will only be used for naming when it matches at least one --refs pattern
but does not match any of the --exclude patterns. Thus, --exclude
patterns are given precedence over --refs patterns.
For example, suppose you wish to name a series of commits based on an
official release tag of the form "v*" but excluding any pre-release tags
which match "*rc*". You can use the following to do so:
git name-rev --refs="v*" --exclude="*rc*" --all
Add tests and update Documentation for this change.
Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/howto/revert-a-faulty-merge.txt')
0 files changed, 0 insertions, 0 deletions