Skip to content

Commit

Permalink
git-p4: Remove --log-substitutions feature.
Browse files Browse the repository at this point in the history
This turns out to be rarely useful and is already covered by git's commit.template configuration variable.

Signed-off-by: Simon Hausmann <simon@lst.de>
  • Loading branch information
Simon Hausmann committed Feb 27, 2008
1 parent 354081d commit 4b61b5c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ class P4Submit(Command):
optparse.make_option("--verbose", dest="verbose", action="store_true"),
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("--direct", dest="directSubmit", action="store_true"),
optparse.make_option("-M", dest="detectRename", action="store_true"),
]
Expand All @@ -477,7 +476,6 @@ class P4Submit(Command):
self.firstTime = True
self.reset = False
self.interactive = True
self.substFile = ""
self.firstTime = True
self.origin = ""
self.directSubmit = False
Expand Down Expand Up @@ -759,11 +757,6 @@ class P4Submit(Command):
if self.reset:
self.firstTime = True

if len(self.substFile) > 0:
for line in open(self.substFile, "r").readlines():
tokens = line.strip().split("=")
self.logSubstitutions[tokens[0]] = tokens[1]

self.check()
self.configFile = self.gitdir + "/p4-git-sync.cfg"
self.config = shelve.open(self.configFile, writeback=True)
Expand Down

0 comments on commit 4b61b5c

Please sign in to comment.