author | SZEDER Gábor <szeder@ira.uka.de> | |
Fri, 19 Sep 2008 22:15:25 +0000 (00:15 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 20 Sep 2008 02:47:48 +0000 (19:47 -0700) | ||
commit | 05e8b3d6f43bd28aef85ec6e7658536510d6f959 | |
tree | 51a0deecd20d2b29aecbd49e71819ef0ebe87d52 | tree | snapshot |
parent | 3791f77c28f233df121da2f83abf7eefc7b49b69 | commit | diff |
bash: use for-each-ref format 'refname:short'
Using this format simplifies the code for completing refs and (in some
cases) improves performance significantly.
For repositories like the current git.git (with more than 200 refs)
there is no real performance difference, but for a repository with 2000
refs the total time needed to complete the refs is reduced by ~25% (from
around 400ms to around 305ms).
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Using this format simplifies the code for completing refs and (in some
cases) improves performance significantly.
For repositories like the current git.git (with more than 200 refs)
there is no real performance difference, but for a repository with 2000
refs the total time needed to complete the refs is reduced by ~25% (from
around 400ms to around 305ms).
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash | diff | blob | history |