projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faf1bd2
)
Detect with git-p4 submit --direct when there are no changes in the working directory
author
Simon Hausmann
<shausman@trolltech.com>
Mon, 21 May 2007 08:08:11 +0000
(10:08 +0200)
committer
Simon Hausmann
<shausman@trolltech.com>
Mon, 21 May 2007 08:08:11 +0000
(10:08 +0200)
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
contrib/fast-import/git-p4
patch
|
blob
|
history
diff --git
a/contrib/fast-import/git-p4
b/contrib/fast-import/git-p4
index 35a513fcb8bab6e7c51d9963138f00e09b58f4b6..f08ee6da44f65d19eea496f47179109b53d0eca7 100755
(executable)
--- a/
contrib/fast-import/git-p4
+++ b/
contrib/fast-import/git-p4
@@
-386,6
+386,9
@@
class P4Submit(Command):
if self.directSubmit:
self.diffStatus = mypopen("git diff -r --name-status HEAD").readlines()
+ if len(self.diffStatus) == 0:
+ print "No changes in working directory to submit."
+ return True
patch = mypopen("git diff -p --binary --diff-filter=ACMRTUXB HEAD").read()
self.diffFile = gitdir + "/p4-git-diff"
f = open(self.diffFile, "wb")