git.droids-corp.org
/
git-central.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Let 0-commit stable branches move on.
[git-central.git]
/
scripts
/
gc-pull
1
#!/bin/sh
2
#!/bin/sh
3
4
branch_name=$(git symbolic-ref --quiet HEAD)
5
if [[ $? -ne 0 ]] ; then
6
echo "not on a branch"
7
exit 1
8
fi
9
10
branch_name=${branch_name/refs\/heads\//}
11
12
git fetch
13
if [[ $? -ne 0 ]] ; then
14
exit $?
15
fi
16
17
GIT_EDITOR=: git rebase -p -i "origin/$branch_name"
18