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

[PATCH v2 0/5] Small "git interpret-trailers" fixes

From
Christian Couder <chriscool@tuxfamily.org>
Date
Nov 9, 2014, 09:23 UTC
Message-ID
<20141109092313.4864.54933.chriscool@tuxfamily.org>
Here is a series to fix a few small bugs in "git interpret-trailers".

Patch 1/5 and patch 2/5 are independent from the last 3 patches, and can be applied to master.

Patches 3/5, 4/5 and 5/5 depend on this series by Junio:
        jc/conflict-hint (2014-10-28) 4 commits
          (merged to 'next' on 2014-10-29 at 693250f)
Changes since the previous version are:
* use "%.*s" instead of a strbuf, in patch 2/5
* add new find_trailer_end() function and a call to strbuf_release(),
  in patch 4/5
Thanks to Junio and Peff.
Christian Couder (5):
  trailer: ignore comment lines inside the trailers
  trailer: display a trailer without its trailing newline
  commit: make ignore_non_trailer() non static
  trailer: reuse ignore_non_trailer() to ignore conflict lines
  trailer: add test with an old style conflict block
 builtin/commit.c              | 46 -------------------------------------------
 commit.c                      | 46 +++++++++++++++++++++++++++++++++++++++++++
 commit.h                      |  3 +++
 t/t7513-interpret-trailers.sh | 34 +++++++++++++++++++++++++++++++-
 trailer.c                     | 46 ++++++++++++++++++++++++++++++++-----------
 5 files changed, 117 insertions(+), 58 deletions(-)
-- 
2.1.2.555.gfbecd99
Next: Christian Couder
Message 1 of 9 in “Small "git interpret-trailers" fixes”
  1. 0/5 Small "git interpret-trailers" fixesChristian Couder, Nov 9, 2014
  2. 1/5 trailer: ignore comment lines inside the trailersChristian Couder, Nov 9, 2014
  3. 2/5 trailer: display a trailer without its trailing newlineChristian Couder, Nov 9, 2014
  4. 3/5 commit: make ignore_non_trailer() non staticChristian Couder, Nov 9, 2014
  5. 4/5 trailer: reuse ignore_non_trailer() to ignore conflict linesChristian Couder, Nov 9, 2014
  6. Junio C HamanoNov 10, 2014
  7. Christian CouderNov 10, 2014
  8. Junio C HamanoNov 10, 2014
  9. 5/5 trailer: add test with an old style conflict blockChristian Couder, Nov 9, 2014

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.