git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-p4: Jobs and skipSubmitEdit
@ 2012-06-22 16:15 Michael Horowitz
  2012-06-24 20:24 ` Pete Wyckoff
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Horowitz @ 2012-06-22 16:15 UTC (permalink / raw)
  To: git

Hello,

I've written a git prepare-commit-msg hook to do what the Perforce
JobsView would essentially do, so I can include the jobs directly in
my git commit message, and then use git-p4.skipSubmitEdit=true, so I
can just push things into Perforce directly from git without ever
being prompted by Perforce.

Problem is that this doesn't work, because git-p4 tabs in the entire
commit message to put it in the "Description:" section of the Perforce
changelist, and my "Jobs:" ends up tabbed in, and it it required by
Perforce to be at the beginning of the line.  The submit ends up
failing, because "Jobs:" is required.  I am forced to turn off
skipSubmitEdit and edit the message to remove the tab from the "Jobs:"
line each commit.

Is there any option to make this work right, or does the git-p4 not
support this?

Thanks,

Mike

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-18  1:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-22 16:15 git-p4: Jobs and skipSubmitEdit Michael Horowitz
2012-06-24 20:24 ` Pete Wyckoff
2012-06-26  5:07   ` Michael Horowitz
2012-06-26 11:21     ` Pete Wyckoff
2012-07-17  8:49       ` Michael Horowitz
2012-07-18  1:03         ` Pete Wyckoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).