git://git.jankratochvil.net
/
nethome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
master->origin/master
[nethome.git]
/
bin
/
dashtopatch
diff --git
a/bin/dashtopatch
b/bin/dashtopatch
index
03ae652
..
bab4561
100755
(executable)
--- a/
bin/dashtopatch
+++ b/
bin/dashtopatch
@@
-4,16
+4,16
@@
if [ $# != 1 ] || ! echo "$1" | grep -q '-';then
echo >&2 "Syntax: $0 branch-list-delimited-by-dashes"
exit 1
fi
echo >&2 "Syntax: $0 branch-list-delimited-by-dashes"
exit 1
fi
-base="master"
+base="
origin/
master"
gerrit=true
if git branch -D gerrit;then
gerrit=true
if git branch -D gerrit;then
- git checkout master
+ git checkout
origin/
master
git checkout -b gerrit
else
gerrit=false
fi
for elem in $(echo "$1"|tr '-' ' ');do
git checkout -b gerrit
else
gerrit=false
fi
for elem in $(echo "$1"|tr '-' ' ');do
- if [ "$base" = "master" ];then
+ if [ "$base" = "
origin/
master" ];then
next="$elem"
else
next="$base-$elem"
next="$elem"
else
next="$base-$elem"