Thread (18 messages) flat view 18 messages, 2 authors, 2016-06-15
DORMANTno replies

[PATCH 2/2] Truncate the SHA1 part of the submodule name to 7 characters

From: Peter Collingbourne <hidden>
Date: 2016-06-15 22:48:33
Subsystem: the rest · Maintainer: Linus Torvalds

The rationale is that a submodule naming clash is a highly infrequent
event (as compared to a file naming clash) so we can minimise the
ugliness of generated submodule names by using a smaller number
of characters.

Signed-off-by: Peter Collingbourne <redacted>
---
 git-submodule.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-submodule.sh b/git-submodule.sh
index 4f0d7df..e85f2d1 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -127,7 +127,7 @@ gen_uid()
 	 echo "$path"
 	 echo $$
 	 date
-	) | git hash-object --stdin
+	) | git hash-object --stdin | cut -c1-7
 }
 
 #
-- 
1.6.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help