]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
rev-parse --glob
authorIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Wed, 20 Jan 2010 09:48:25 +0000 (11:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Jan 2010 20:29:05 +0000 (12:29 -0800)
commitd08bae7e221727e26baab984b792854b842130d7
tree234dd292750f4d1a4c9d200e3b6e2792baa98ae9
parent5b15950ac414a8a2d4f5eb480712abcc9fe176d2
rev-parse --glob

Add --glob=<glob-pattern> option to rev-parse and everything that
accepts its options. This option matches all refs that match given
shell glob pattern (complete with some DWIM logic).

Example:

'git log --branches --not --glob=remotes/origin'

To show what you have that origin doesn't.

Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-log.txt
Documentation/git-rev-list.txt
Documentation/git-rev-parse.txt
Documentation/rev-list-options.txt
builtin-rev-parse.c
refs.c
refs.h
revision.c
t/t6018-rev-list-glob.sh [new file with mode: 0755]