While experimenting with debcherry for use in pkg-perl and discussing
things with David, I noticed two related sources of "noise" in the
generated patches:

- the Subject line contains [PATCH] with a number (like "[PATCH 2/3]"),
  which causes noise in all patches if another patch is added or
  dropped. This is simple to fix by adding --no-numbered to the two
  lower calls of git format-patch

- the diff contains an "index" line with short hashes from the temporary
  repository (meaningless, volatile). I'm currently filtering it out
  with the line

            next if /^diff --git a/../^--- a/ and /^index /;

  in a post-processing script that adds the content of git notes to the
  generated patches.

Florian

Reply via email to