bash completion: refactor common log, shortlog and gitk options
commita393777ec9ca7c33cb76efa225ddacc53784c0dd
authorThomas Rast <trast@student.ethz.ch>
Mon, 16 Feb 2009 16:34:56 +0000 (16 17:34 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Feb 2009 18:41:37 +0000 (18 10:41 -0800)
treedb4176474df757be3cbadebc496942209e3ebdb4
parent81d3fe9f4871e42ebd1af0221fa091fe5476e2f7
bash completion: refactor common log, shortlog and gitk options

Refactor options that are useful for more than one of them into a
variable used by the relevant completions.  This has the effect of
adding the following options to git-log:

  --branches --tags --remotes --first-parent --dense --sparse
  --simplify-merges --simplify-by-decoration --first-parent
  --no-merges

The following to git-shortlog:

  --branches --tags --remotes --first-parent

And the following to gitk:

  --branches --tags --remotes --first-parent --no-merges --max-count=
  --max-age= --since= --after= --min-age= --until= --before= --dense
  --sparse --full-history --simplify-merges --simplify-by-decoration
  --left-right

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash