summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder@ira.uka.de>2008-03-10 16:02:23 +0100
committerShawn O. Pearce <spearce@spearce.org>2008-03-10 19:45:20 -0400
commit3ff1320d4be164e35a685d8d00b6f44084be76e0 (patch)
tree6fb2f1818eb76eab3b5180bfa0ab0fb5a8498c32 /daemon.c
parent1d17b22ebf9d894cef393e3e062f383aad8817e8 (diff)
downloadgit-3ff1320d4be164e35a685d8d00b6f44084be76e0.tar.gz
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 'daemon.c')
0 files changed, 0 insertions, 0 deletions