chiark
/
gitweb
/
~ian
/
topgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6000f3a
)
tg import: Change default prefix from tp/ to t/
author
Petr Baudis
<pasky@suse.cz>
Tue, 9 Sep 2008 22:06:44 +0000
(
00:06
+0200)
committer
Petr Baudis
<pasky@suse.cz>
Tue, 9 Sep 2008 22:06:44 +0000
(
00:06
+0200)
README
patch
|
blob
|
history
tg-import.sh
patch
|
blob
|
history
diff --git
a/README
b/README
index c6b4cb95dcfa437827cfbf4babaf5c4c3af7492b..f380475436a6bd1f116fd193aa1aafbac8aa3f0a 100644
(file)
--- a/
README
+++ b/
README
@@
-359,7
+359,7
@@
tg import
a linear sequence starting on your current branch.
The branch names are auto-guessed from the commit messages
- and prefixed by t
p
/.
+ and prefixed by t/.
tg update
~~~~~~~~~
diff --git
a/tg-import.sh
b/tg-import.sh
index 63d7e1bb7a3ccaf2ecf0246302d59dc69708ac2a..4f5c9810d7755ea434b2451a15e87f1ae7b03acc 100644
(file)
--- a/
tg-import.sh
+++ b/
tg-import.sh
@@
-48,7
+48,7
@@
process_commit()
commit="$1"
branch_name=$(get_branch_name "$commit")
echo "Importing $commit to $branch_name"
- tg create t
p
/"$branch_name"
+ tg create t/"$branch_name"
git read-tree "$commit"
get_commit_msg "$commit" > .topmsg
git add -f .topmsg .topdeps