mirror of
https://github.com/git/git.git
synced 2026-01-23 09:01:15 +00:00
merge-one-file: avoid dashed invocation
The original idea of deprecating invocations of Git subcommands via their dashed form was to be able to ship without having to hard-link each and every builtin to its dashed form. We need to follow this plan ourselves, by patching our very own scripts accordingly. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -115,16 +115,16 @@ case "${1:-.}${2:-.}${3:-.}" in
|
||||
;;
|
||||
esac
|
||||
|
||||
src1=$(git-unpack-file $2)
|
||||
src2=$(git-unpack-file $3)
|
||||
src1=$(git unpack-file $2)
|
||||
src2=$(git unpack-file $3)
|
||||
case "$1" in
|
||||
'')
|
||||
echo "Added $4 in both, but differently."
|
||||
orig=$(git-unpack-file e69de29bb2d1d6434b8b29ae775ad8c2e48c5391)
|
||||
orig=$(git unpack-file e69de29bb2d1d6434b8b29ae775ad8c2e48c5391)
|
||||
;;
|
||||
*)
|
||||
echo "Auto-merging $4"
|
||||
orig=$(git-unpack-file $1)
|
||||
orig=$(git unpack-file $1)
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user