Skip to content

Commit

Permalink
Added git-p4 submit --trust-me-like-a-fool for the adventurous users :)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Hausmann <simon@lst.de>
  • Loading branch information
Simon Hausmann committed May 25, 2007
1 parent 877db58 commit cb4f128
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ class P4Submit(Command):
optparse.make_option("--origin", dest="origin"),
optparse.make_option("--reset", action="store_true", dest="reset"),
optparse.make_option("--log-substitutions", dest="substFile"),
optparse.make_option("--noninteractive", action="store_false"),
optparse.make_option("--dry-run", action="store_true"),
optparse.make_option("--direct", dest="directSubmit", action="store_true"),
optparse.make_option("--trust-me-like-a-fool", dest="trustMeLikeAFool", action="store_true"),
]
self.description = "Submit changes from git to the perforce depot."
self.usage += " [name of git branch to submit into perforce depot]"
Expand All @@ -209,6 +209,7 @@ class P4Submit(Command):
self.firstTime = True
self.origin = ""
self.directSubmit = False
self.trustMeLikeAFool = False

self.logSubstitutions = {}
self.logSubstitutions["<enter description here>"] = "%log%"
Expand Down Expand Up @@ -348,6 +349,9 @@ class P4Submit(Command):
separatorLine += "\n"

response = "e"
if self.trustMeLikeAFool:
response = "y"

firstIteration = True
while response == "e":
if not firstIteration:
Expand Down

0 comments on commit cb4f128

Please sign in to comment.