Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
merge-one-file: compute empty blob object ID
author
brian m. carlson
<sandals@crustytoothpaste.net>
Wed, 2 May 2018 00:26:10 +0000
(
00:26
+0000)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 2 May 2018 04:59:53 +0000
(13:59 +0900)
This script hard-codes the object ID of the empty blob. To avoid any
problems when changing hashes, compute this value by calling git
hash-object.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-merge-one-file.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
23ec4c5
)
diff --git
a/git-merge-one-file.sh
b/git-merge-one-file.sh
index 9879c59395edff1a02e390397fc623bc60724c57..f6d9852d2f618393412016cc81c73b1e8362a59d 100755
(executable)
--- a/
git-merge-one-file.sh
+++ b/
git-merge-one-file.sh
@@
-120,7
+120,7
@@
case "${1:-.}${2:-.}${3:-.}" in
case "$1" in
'')
echo "Added $4 in both, but differently."
- orig=$(git unpack-file
e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
)
+ orig=$(git unpack-file
$(git hash-object /dev/null)
)
;;
*)
echo "Auto-merging $4"