Rewrite 'git-foo' => 'git foo'
Junio C Hamano committed
Dec 14, 2007 at 22:43 UTC
c6d71b2d5400742659dbeb37277f9baef2c4f6f9
9 files changed
+22
-22
DoKernelOrg
+2
-2
@@ -25,7 +25,7 @@ case "$1" in
25
nstalled=install
26
for branch in $branches
27
do
28
- if git-rev-parse --verify refs/heads/$branch 2>/dev/null
28
+ if git rev-parse --verify refs/heads/$branch 2>/dev/null
29
then
30
echo "** $branch **" &&
31
git checkout $branch &&
@@ -84,7 +84,7 @@ maint | master)
84
;;
85
esac >>./:all.log 2>&1 &&
86
case "$V" in
87
- *.rc[0-9]*)
87
+ *.rc[0-9]* | *-rc[0-9]*)
88
mkdir -p $G/testing &&
89
for a in $narch
90
do
PU
+5
-5
@@ -3,8 +3,8 @@
3
# Rebuild "pu" from topic branches.
4
#
5
6
-git-update-index --refresh || exit
7
-case "$(git-diff-index --name-status HEAD)" in
6
+git update-index --refresh || exit
7
+case "$(git diff-index --name-status HEAD)" in
8
'') ;;
9
*) echo 2>&1 "Local modifications exist."
10
exit 1;;
@@ -36,14 +36,14 @@ case "$#" in
36
NHH=
37
for H in $HH
38
do
39
- HSHA1=`git-rev-parse --verify $H` || continue
40
- MB=`git-show-branch --merge-base pu $HSHA1`
39
+ HSHA1=`git rev-parse --verify $H` || continue
40
+ MB=`git show-branch --merge-base pu $HSHA1`
41
case "$LF$MB$LF" in
42
*"$LF$HSHA1$LF"*) continue ;; # already merged.
43
esac
44
I=$(($I+1))
45
echo -n "$I: "
46
- git-show-branch $H
46
+ git show-branch $H
47
NHH="${NHH}$H "
48
done
49
case "$I" in
RB
+5
-5
@@ -19,15 +19,15 @@ do
19
topic_sha1=`git rev-parse --verify "refs/heads/$topic"`
20
21
date=`
22
- git-rev-list -1 --pretty "$topic" |
22
+ git rev-list -1 --pretty "$topic" |
23
sed -ne 's/^Date: *\(.*\)/ (\1)/p'
24
`
25
- only_next_1=`git-rev-list ^master "^$topic" next | sort`
26
- only_next_2=`git-rev-list ^master next | sort`
25
+ only_next_1=`git rev-list ^master "^$topic" next | sort`
26
+ only_next_2=`git rev-list ^master next | sort`
27
rebase=
28
if test "$only_next_1" = "$only_next_2"
29
then
30
- not_in_topic=`git-rev-list "^$topic" master`
30
+ not_in_topic=`git rev-list "^$topic" master`
31
if test -z "$not_in_topic"
32
then
33
:; # already up-to-date.
@@ -38,7 +38,7 @@ do
38
if test -n "$rebase"
39
then
40
echo "Rebasing $topic to pick up:"
41
- git-rev-list --pretty=oneline "^$topic" master |
41
+ git rev-list --pretty=oneline "^$topic" master |
42
sed -e 's/^[0-9a-f]* / * /'
43
git checkout "$topic" &&
44
git rebase master || break;
RP
+1
-1
@@ -20,7 +20,7 @@ case "$#,$1" in
20
base_branch=master
21
;;
22
2)
23
- base_branch=$(git-rev-parse --verify "$2") || exit
23
+ base_branch=$(git rev-parse --verify "$2") || exit
24
;;
25
*)
26
echo >&2 "$usage"
SE
+1
-1
@@ -24,7 +24,7 @@ do
24
shift
25
done
26
27
-git-send-email \
27
+git send-email \
28
--from="$me" \
29
--envelope-sender="$me" \
30
--to="$to" \
Summary
+1
-1
@@ -6,7 +6,7 @@ trap 'rm -f $tmp-*' 0
6
since="$1"
7
until="$2"
8
9
-git-rev-list --no-merges "master@{$1}..master@{$2}" >"$tmp-0.txt"
9
+git rev-list --no-merges "master@{$1}..master@{$2}" >"$tmp-0.txt"
10
top="master@{$until}"
11
bottom="master@{$since}"
12
V
+1
-1
@@ -24,5 +24,5 @@ do
24
installed=$(git describe $version)
25
in="[41;37m" out="[m" installed=" $installed"
26
fi
27
- echo "$in$v$out $(git-describe refs/heads/$v)$installed"
27
+ echo "$in$v$out $(git describe refs/heads/$v)$installed"
28
done
WI
+2
-2
@@ -13,7 +13,7 @@ echo "X-maint-at: $maint_at"
13
echo "X-master-at: $master_at"
14
15
tagged=`git rev-parse --not --verify hold/sa/maint`
16
-list=`git-rev-list $tagged refs/heads/maint 2>/dev/null`
16
+list=`git rev-list $tagged refs/heads/maint 2>/dev/null`
17
if test -n "$list"
18
then
19
echo
@@ -23,7 +23,7 @@ then
23
fi
24
25
tagged=`git rev-parse --not --verify hold/sa/master`
26
-list=`git-rev-list $tagged refs/heads/master 2>/dev/null`
26
+list=`git rev-list $tagged refs/heads/master 2>/dev/null`
27
if test -n "$list"
28
then
29
echo
dodoc.sh
+4
-4
@@ -12,7 +12,7 @@ case " $* " in
12
echo $HOME/git-doc/dodoc.sh | at now
13
;;
14
esac
15
-exec git-update-server-info
15
+exec git update-server-info
16
$ chmod +x hooks/post-update
17
18
END_OF_COMMENTARY
@@ -25,7 +25,7 @@ END_OF_COMMENTARY
25
# updated the updates are pushed back into their own branches
26
# in git.git repository.
27
28
-ID=`git-rev-parse --verify refs/heads/master` || exit $?
28
+ID=`git rev-parse --verify refs/heads/master` || exit $?
29
30
unset GIT_DIR
31
@@ -44,8 +44,8 @@ trap 'rm -f "$tmp".*' 0
44
git pull "$MASTERREPO" master &&
45
git fetch --tags "$MASTERREPO"
46
) >/dev/null 2>/dev/null || exit $?
47
-test $(git-rev-parse --verify refs/heads/master) == "$ID" &&
48
-NID=$(git-describe --abbrev=4 "$ID") &&
47
+test $(git rev-parse --verify refs/heads/master) == "$ID" &&
48
+NID=$(git describe --abbrev=4 "$ID") &&
49
test '' != "$NID" || exit $?
50
51
# Set up subrepositories