git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-p4 submit: prevent 'Jobs' section from being removed from p4 change log

From
MHMichael Horowitz <michael.horowitz@ieee.org>
Date
Feb 26, 2011, 02:31 UTC
Message-ID
<AANLkTimdd_AdVyDGKyLUoOABuRjJ5QmpC3DnMQYRRcNm@mail.gmail.com>

In an attempt to overwrite the 'Description:' section of the p4 change log to include the git commit messages, it also overwrote the 'Jobs:' section.  This fix restores the 'Job:' section.

Signed-off-by: Michael Horowitz <michael.horowitz@ieee.org>
---
 contrib/fast-import/git-p4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index a92beb6..8b00fd8 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -570,7 +570,7 @@ class P4Submit(Command):
                continue

            if inDescriptionSection:
-                if line.startswith("Files:"):
+                if line.startswith("Files:") or line.startswith("Jobs:"):
                    inDescriptionSection = False
                else:
                    continue
--
1.7.4
Next: Junio C Hamano
Message 1 of 3 in “git-p4 submit: prevent 'Jobs' section from being removed from p4 change log”
  1. git-p4 submit: prevent 'Jobs' section from being removed from p4 change logMichael Horowitz, Feb 26, 2011
  2. Junio C HamanoFeb 26, 2011
  3. Michael HorowitzFeb 26, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.