|
2 | 2 | # |
3 | 3 | # Copyright (c) 2006, 2008 Junio C Hamano |
4 | 4 | # |
5 | | -# The "pre-rebase" hook is run just before "git-rebase" starts doing |
| 5 | +# The "pre-rebase" hook is run just before "git rebase" starts doing |
6 | 6 | # its job, and can prevent the command from running by exiting with |
7 | 7 | # non-zero status. |
8 | 8 | # |
@@ -43,19 +43,19 @@ git show-ref -q "$topic" || { |
43 | 43 | } |
44 | 44 |
|
45 | 45 | # Is topic fully merged to master? |
46 | | -not_in_master=`git-rev-list --pretty=oneline ^master "$topic"` |
| 46 | +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` |
47 | 47 | if test -z "$not_in_master" |
48 | 48 | then |
49 | 49 | echo >&2 "$topic is fully merged to master; better remove it." |
50 | 50 | exit 1 ;# we could allow it, but there is no point. |
51 | 51 | fi |
52 | 52 |
|
53 | 53 | # Is topic ever merged to next? If so you should not be rebasing it. |
54 | | -only_next_1=`git-rev-list ^master "^$topic" ${publish} | sort` |
55 | | -only_next_2=`git-rev-list ^master ${publish} | sort` |
| 54 | +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` |
| 55 | +only_next_2=`git rev-list ^master ${publish} | sort` |
56 | 56 | if test "$only_next_1" = "$only_next_2" |
57 | 57 | then |
58 | | - not_in_topic=`git-rev-list "^$topic" master` |
| 58 | + not_in_topic=`git rev-list "^$topic" master` |
59 | 59 | if test -z "$not_in_topic" |
60 | 60 | then |
61 | 61 | echo >&2 "$topic is already up-to-date with master" |
|
64 | 64 | exit 0 |
65 | 65 | fi |
66 | 66 | else |
67 | | - not_in_next=`git-rev-list --pretty=oneline ^${publish} "$topic"` |
| 67 | + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` |
68 | 68 | @PERL_PATH@ -e ' |
69 | 69 | my $topic = $ARGV[0]; |
70 | 70 | my $msg = "* $topic has commits already merged to public branch:\n"; |
@@ -157,13 +157,13 @@ B to be deleted. |
157 | 157 |
|
158 | 158 | To compute (1): |
159 | 159 |
|
160 | | - git-rev-list ^master ^topic next |
161 | | - git-rev-list ^master next |
| 160 | + git rev-list ^master ^topic next |
| 161 | + git rev-list ^master next |
162 | 162 |
|
163 | 163 | if these match, topic has not merged in next at all. |
164 | 164 |
|
165 | 165 | To compute (2): |
166 | 166 |
|
167 | | - git-rev-list master..topic |
| 167 | + git rev-list master..topic |
168 | 168 |
|
169 | 169 | if this is empty, it is fully merged to "master". |
0 commit comments