[PATCH v3] git-submodule.sh: shorten submodule SHA-1s using rev-parse

2019-02-03 Thread Sven van Haastregt
` in the submodule directory. Keep the old method using `cut` as a fallback. Signed-off-by: Sven van Haastregt --- Differences since v2: Simplify code as suggested by Eric Sunshine and suppress stderr. git-submodule.sh | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a

[PATCH v2] git-submodule.sh: shorten submodule SHA-1s using rev-parse

2019-01-27 Thread Sven van Haastregt
` in the submodule directory. Keep the old method using `cut` as a fallback. Signed-off-by: Sven van Haastregt --- Differences since v1: Keep the old method using `cut` as a fallback. git-submodule.sh | 8 1 file changed, 8 insertions(+) diff --git a/git-submodule.sh b/git-submodule.sh

Re: [PATCH] git-submodule.sh: shorten submodule SHA-1s using rev-parse

2019-01-22 Thread Sven van Haastregt
On 22/01/19 20:22, Junio C Hamano wrote: One thing it is not clear to me is that this codepath is prepared to handle sha1_src and sha1_dst referring to an object that does not exist (i.e. $missing_(src|dst)=t); the original code will still give us 7 hexdigit to show on the headline, but does the

[PATCH] git-submodule.sh: shorten submodule SHA-1s using rev-parse

2019-01-21 Thread Sven van Haastregt
Until now, `git submodule summary` was always emitting 7-character SHA-1s that have a higher chance of being ambiguous for larger repositories. Use `git rev-parse --short` instead, which will determine suitable short SHA-1 lengths. Signed-off-by: Sven van Haastregt --- git-submodule.sh | 4

Re: Arrow keys broken in gitk

2015-07-24 Thread Sven van Haastregt
Roland Lutz hedmen.org> writes: > in gitk on Debian jessie (Git version 2.1.4), the left/right arrow > keys don't work in the text input fields. When I click into the SHA > ID field or either search field and press the left or right arrow > key, nothing happens. I'd expect the text cursor to mo

[PATCH] Documentation: fix version numbering

2015-01-22 Thread Sven van Haastregt
Version numbers in asciidoc-generated content (such as man pages) went missing as of da8a366 (Documentation: refactor common operations into variables). Fix by putting the underscore back in the variable name. Signed-off-by: Sven van Haastregt --- Documentation/Makefile | 2 +- 1 file changed