revision: add --except option felipec/fc/revision/except
authorFelipe Contreras <felipe.contreras@gmail.com>
Fri, 30 Aug 2013 03:37:35 +0000 (22:37 -0500)
committerFelipe Contreras <felipe.contreras@gmail.com>
Wed, 30 Apr 2014 19:08:48 +0000 (14:08 -0500)
commitcae291c57141a70db8324b1357d00b32a97b3c71
tree44ce3863277b30717cd66e33fbea8891da029752
parent0bc85abb7aa9b24b093253018801a0fb43d01122
revision: add --except option

So that it's possible to remove certain refs from the list without
removing the objects that are referenced by other refs.

For example this repository:

  C (crap)
  B (test)
  A (HEAD, master)

When using '--branches --except crap':

  B (test)
  A (HEAD, master)

But when using '--branches --not crap' nothing will come out.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Documentation/git-rev-parse.txt
contrib/completion/git-completion.bash
revision.c
revision.h
t/t6112-rev-list-except.sh [new file with mode: 0755]