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:
43a76ac
)
tg depend: Allow adding deps from a subdir inside the repo.
author
Matt McDonald
<metzen@gmail.com>
Sat, 8 Nov 2008 19:01:02 +0000
(14:01 -0500)
committer
martin f. krafft
<madduck@madduck.net>
Mon, 10 Nov 2008 09:21:20 +0000
(10:21 +0100)
tg-depend.sh
patch
|
blob
|
history
diff --git
a/tg-depend.sh
b/tg-depend.sh
index 265198a886b2b23c67286a3e0c1da8bf1c64a344..ff4541c5980df606ab293cb224867c00577f5f65 100755
(executable)
--- a/
tg-depend.sh
+++ b/
tg-depend.sh
@@
-43,7
+43,7
@@
baserev="$(git rev-parse --verify "refs/top-bases/$name" 2>/dev/null)" ||
## Record new dependency
-echo "$name" >>
.topdeps
-git add -f
.topdeps
+echo "$name" >>
"$root_dir/.topdeps"
+git add -f
"$root_dir/.topdeps"
git commit -m"New TopGit dependency: $name"
$tg update