summaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder@ira.uka.de>2008-03-10 15:02:23 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2008-03-10 23:45:20 (GMT)
commit3ff1320d4be164e35a685d8d00b6f44084be76e0 (patch)
tree6fb2f1818eb76eab3b5180bfa0ab0fb5a8498c32 /hash.h
parent1d17b22ebf9d894cef393e3e062f383aad8817e8 (diff)
downloadgit-3ff1320d4be164e35a685d8d00b6f44084be76e0.zip
git-3ff1320d4be164e35a685d8d00b6f44084be76e0.tar.gz
git-3ff1320d4be164e35a685d8d00b6f44084be76e0.tar.bz2
bash: refactor searching for subcommands on the command line
This patch adds the __git_find_subcommand function, which takes one argument: a string containing all subcommands separated by spaces. The function searches through the command line whether a subcommand is already present. The first found subcommand will be printed to standard output. This enables us to remove code duplications from completion functions for commands having subcommands. Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'hash.h')
0 files changed, 0 insertions, 0 deletions