OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae8de8
)
Helper function to check the existance of a revision
author
Simon Hausmann
<simon@lst.de>
Thu, 22 Mar 2007 20:27:14 +0000
(21:27 +0100)
committer
Simon Hausmann
<simon@lst.de>
Thu, 22 Mar 2007 20:27:14 +0000
(21:27 +0100)
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4
patch
|
blob
|
history
diff --git
a/contrib/fast-import/git-p4
b/contrib/fast-import/git-p4
index
6ead1c4
..
b21dee3
100755
(executable)
--- a/
contrib/fast-import/git-p4
+++ b/
contrib/fast-import/git-p4
@@
-83,6
+83,9
@@
def extractDepotPathAndChangeFromGitLog(log):
return values.get("depot-path"), values.get("change")
+def gitBranchExists(branch):
+ return os.system("git-rev-parse %s 2>/dev/null >/dev/null") == 0
+
class Command:
def __init__(self):
self.usage = "usage: %prog [options]"