Skip to content

Commit 974ce80

Browse files
michaelforneygitster
authored andcommitted
scripts: use "git foo" not "git-foo"
We want to make sure that people who copy & paste code would see fewer instances of "git-foo". The use of these dashed forms have been discouraged since v1.6.0 days. Signed-off-by: Michael Forney <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4384e3c commit 974ce80

5 files changed

+10
-10
lines changed

git-merge-octopus.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ do
100100
if test $? -ne 0
101101
then
102102
gettextln "Simple merge did not work, trying automatic merge."
103-
git-merge-index -o git-merge-one-file -a ||
103+
git merge-index -o git-merge-one-file -a ||
104104
OCTOPUS_FAILURE=1
105105
next=$(git write-tree 2>/dev/null)
106106
fi

git-merge-one-file.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,16 @@ case "${1:-.}${2:-.}${3:-.}" in
115115
;;
116116
esac
117117

118-
src1=$(git-unpack-file $2)
119-
src2=$(git-unpack-file $3)
118+
src1=$(git unpack-file $2)
119+
src2=$(git unpack-file $3)
120120
case "$1" in
121121
'')
122122
echo "Added $4 in both, but differently."
123-
orig=$(git-unpack-file e69de29bb2d1d6434b8b29ae775ad8c2e48c5391)
123+
orig=$(git unpack-file e69de29bb2d1d6434b8b29ae775ad8c2e48c5391)
124124
;;
125125
*)
126126
echo "Auto-merging $4"
127-
orig=$(git-unpack-file $1)
127+
orig=$(git unpack-file $1)
128128
;;
129129
esac
130130

git-merge-resolve.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ then
4545
exit 0
4646
else
4747
echo "Simple merge failed, trying Automatic merge."
48-
if git-merge-index -o git-merge-one-file -a
48+
if git merge-index -o git-merge-one-file -a
4949
then
5050
exit 0
5151
else

git-stash.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ apply_stash () {
573573

574574
if test -n "$u_tree"
575575
then
576-
GIT_INDEX_FILE="$TMPindex" git-read-tree "$u_tree" &&
576+
GIT_INDEX_FILE="$TMPindex" git read-tree "$u_tree" &&
577577
GIT_INDEX_FILE="$TMPindex" git checkout-index --all &&
578578
rm -f "$TMPindex" ||
579579
die "$(gettext "Could not restore untracked files from stash entry")"

git-submodule.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ cmd_summary() {
864864
test $status != A && test $ignore_config = all && continue
865865
fi
866866
# Also show added or modified modules which are checked out
867-
GIT_DIR="$sm_path/.git" git-rev-parse --git-dir >/dev/null 2>&1 &&
867+
GIT_DIR="$sm_path/.git" git rev-parse --git-dir >/dev/null 2>&1 &&
868868
printf '%s\n' "$sm_path"
869869
done
870870
)
@@ -898,11 +898,11 @@ cmd_summary() {
898898
missing_dst=
899899

900900
test $mod_src = 160000 &&
901-
! GIT_DIR="$name/.git" git-rev-parse -q --verify $sha1_src^0 >/dev/null &&
901+
! GIT_DIR="$name/.git" git rev-parse -q --verify $sha1_src^0 >/dev/null &&
902902
missing_src=t
903903

904904
test $mod_dst = 160000 &&
905-
! GIT_DIR="$name/.git" git-rev-parse -q --verify $sha1_dst^0 >/dev/null &&
905+
! GIT_DIR="$name/.git" git rev-parse -q --verify $sha1_dst^0 >/dev/null &&
906906
missing_dst=t
907907

908908
display_name=$(git submodule--helper relative-path "$name" "$wt_prefix")

0 commit comments

Comments
 (0)