Added git-p4 submit --trust-me-like-a-fool for the adventurous users :)
Signed-off-by: Simon Hausmann <simon@lst.de>
Simon Hausmann committed
May 25, 2007 at 22:34 UTC
cb4f1280dd5691890abea4521bff0a3d6e3facfd
1 file changed
+5
-1
contrib/fast-import/git-p4
+5
-1
@@ -195,9 +195,9 @@ class P4Submit(Command):
195
optparse.make_option("--origin", dest="origin"),
196
optparse.make_option("--reset", action="store_true", dest="reset"),
197
optparse.make_option("--log-substitutions", dest="substFile"),
198
- optparse.make_option("--noninteractive", action="store_false"),
198
optparse.make_option("--dry-run", action="store_true"),
199
optparse.make_option("--direct", dest="directSubmit", action="store_true"),
200
+ optparse.make_option("--trust-me-like-a-fool", dest="trustMeLikeAFool", action="store_true"),
201
]
202
self.description = "Submit changes from git to the perforce depot."
203
self.usage += " [name of git branch to submit into perforce depot]"
@@ -209,6 +209,7 @@ class P4Submit(Command):
209
self.firstTime = True
210
self.origin = ""
211
self.directSubmit = False
212
+ self.trustMeLikeAFool = False
213
214
self.logSubstitutions = {}
215
self.logSubstitutions["<enter description here>"] = "%log%"
@@ -348,6 +349,9 @@ class P4Submit(Command):
349
separatorLine += "\n"
350
351
response = "e"
352
+ if self.trustMeLikeAFool:
353
+ response = "y"
354
+
355
firstIteration = True
356
while response == "e":
357
if not firstIteration: