diff options
| author | SZEDER Gábor <szeder@ira.uka.de> | 2008-03-10 16:02:23 +0100 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2008-03-10 19:45:20 -0400 |
| commit | 3ff1320d4be164e35a685d8d00b6f44084be76e0 (patch) | |
| tree | 6fb2f1818eb76eab3b5180bfa0ab0fb5a8498c32 /git-gui/lib/commit.tcl | |
| parent | 1d17b22ebf9d894cef393e3e062f383aad8817e8 (diff) | |
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 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions
