1. 22 2月, 2009 2 次提交
    • T
      format-patch: thread as reply to cover letter even with in-reply-to · 2175c10d
      Thomas Rast 提交于
      Currently, format-patch --thread --cover-letter --in-reply-to $parent
      makes all mails, including the cover letter, a reply to $parent.
      However, we would want the reader to consider the cover letter above
      all the patches.
      
      This changes the semantics so that only the cover letter is a reply to
      $parent, while all the patches are formatted as replies to the cover
      letter.
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2175c10d
    • T
      format-patch: track several references · b079c50e
      Thomas Rast 提交于
      Currently, format-patch can only track a single reference (the
      In-Reply-To:) for each mail.  To ensure proper threading, we should
      list all known references for every mail.
      
      Change the rev_info.ref_message_id field to a string_list, so that we
      can append references at will, and change the output formatting
      routines to print all of them in the References: header.  The last
      entry in the list is implicitly assumed to be the In-Reply-To:, which
      gives output consistent with RFC 2822:
      
         The "References:" field will contain the contents of the parent's
         "References:" field (if any) followed by the contents of the
         parent's "Message-ID:" field (if any).
      
      Note that this is just preparatory work; nothing uses it yet, so all
      "References:" fields in the output are still only one deep.
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b079c50e
  2. 13 1月, 2009 1 次提交
  3. 11 1月, 2009 1 次提交
    • J
      format-patch: show patch text for the root commit · 68c2ec7f
      Junio C Hamano 提交于
      Even without --root specified, if the range given on the command line
      happens to include a root commit, we should include its patch text in the
      output.
      
      This fix deliberately ignores log.showroot configuration variable because
      "format-patch" and "log -p" can and should behave differently in this
      case, as the former is about exporting a part of your history in a form
      that is replayable elsewhere and just giving the commit log message
      without the patch text does not make any sense for that purpose.
      
      Noticed and fix originally attempted by Nathan W. Panike; credit goes to
      Alexander Potashev for injecting sanity to my initial (broken) fix that
      used the value from log.showroot configuration, which was misguided.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      68c2ec7f
  4. 06 1月, 2009 3 次提交
  5. 01 1月, 2009 1 次提交
  6. 15 12月, 2008 1 次提交
  7. 08 12月, 2008 1 次提交
    • J
      reorder ALLOW_TEXTCONV option setting · 5ec11af6
      Jeff King 提交于
      Right now for the diff porcelain and the log family, we
      call:
      
        init_revisions();
        setup_revisions();
        DIFF_OPT_SET(ALLOW_TEXTCONV);
      
      However, that means textconv will _always_ be on, instead of
      being a default that can be manipulated with
      setup_revisions. Instead, we want:
      
        init_revisions();
        DIFF_OPT_SET(ALLOW_TEXTCONV);
        setup_revisions();
      
      which is what this patch does.
      
      We'll go ahead and move the callsite in wt-status, also;
      even though the user can't pass any options here, it is a
      cleanup that will help avoid any surprise later if the
      setup_revisions line is changed.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5ec11af6
  8. 04 11月, 2008 2 次提交
  9. 27 10月, 2008 1 次提交
    • J
      userdiff: require explicitly allowing textconv · c7534ef4
      Jeff King 提交于
      Diffs that have been produced with textconv almost certainly
      cannot be applied, so we want to be careful not to generate
      them in things like format-patch.
      
      This introduces a new diff options, ALLOW_TEXTCONV, which
      controls this behavior. It is off by default, but is
      explicitly turned on for the "log" family of commands, as
      well as the "diff" porcelain (but not diff-* plumbing).
      
      Because both text conversion and external diffing are
      controlled by these diff options, we can get rid of the
      "plumbing versus porcelain" distinction when reading the
      config. This was an attempt to control the same thing, but
      suffered from being too coarse-grained.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c7534ef4
  10. 18 10月, 2008 1 次提交
  11. 13 10月, 2008 1 次提交
  12. 20 9月, 2008 1 次提交
  13. 05 9月, 2008 2 次提交
  14. 27 8月, 2008 1 次提交
    • J
      format-patch: use default diff format even with patch options · 68daa64d
      Jeff King 提交于
      Previously, running "git format-patch -U5" would cause the
      low-level diff machinery to change the diff output format
      from "not specified" to "patch". This meant that
      format-patch thought we explicitly specified a diff output
      format, and would not use the default format. The resulting
      message lacked both the diffstat and the summary, as well as
      the separating "---".
      
      Now format-patch explicitly checks for this condition and
      uses the default. That means that "git format-patch -p" will
      now have the "-p" ignored.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      68daa64d
  15. 20 8月, 2008 1 次提交
  16. 18 8月, 2008 2 次提交
  17. 15 7月, 2008 1 次提交
  18. 14 7月, 2008 1 次提交
    • S
      Make usage strings dash-less · 1b1dd23f
      Stephan Beyer 提交于
      When you misuse a git command, you are shown the usage string.
      But this is currently shown in the dashed form.  So if you just
      copy what you see, it will not work, when the dashed form
      is no longer supported.
      
      This patch makes git commands show the dash-less version.
      
      For shell scripts that do not specify OPTIONS_SPEC, git-sh-setup.sh
      generates a dash-less usage string now.
      Signed-off-by: NStephan Beyer <s-beyer@gmx.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1b1dd23f
  19. 06 7月, 2008 1 次提交
  20. 02 7月, 2008 1 次提交
  21. 24 5月, 2008 1 次提交
  22. 15 5月, 2008 1 次提交
  23. 12 5月, 2008 1 次提交
  24. 04 5月, 2008 1 次提交
  25. 30 4月, 2008 1 次提交
  26. 10 4月, 2008 1 次提交
    • J
      log: teach "terminator" vs "separator" mode to "--pretty=format" · 4da45bef
      Junio C Hamano 提交于
      This attached patch introduces a single bit "use_terminator" in "struct
      rev_info", which is normally false (i.e. most formats use separator
      semantics) but by flipping it to true, you can ask for terminator
      semantics just like oneline format does.
      
      The function get_commit_format(), which is what parses "--pretty=" option,
      now takes a pointer to "struct rev_info" and updates its commit_format and
      use_terminator fields.  It used to return the value of type "enum
      cmit_fmt", but all the callers assigned it to rev->commit_format.
      
      There are only two cases the code turns use_terminator on.  Obviously, the
      traditional oneline format (--pretty=oneline) is one of them, and the new
      case is --pretty=tformat:... that acts like --pretty=format:... but flips
      the bit on.
      
      With this, "--pretty=tformat:%H %s" acts like --pretty=oneline.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4da45bef
  27. 06 3月, 2008 1 次提交
    • D
      log/show/whatchanged: introduce format.pretty configuration · 94c22a5e
      Denis Cheng 提交于
      When running log/show/whatchanged from the command line, the user may
      want to use a preferred format without having to pass --pretty=<fmt>
      option every time from the command line.  This teaches these three
      commands to honor a new configuration variable, format.pretty.
      
      The --pretty option given from the command line will override the
      configured format.
      
      The earlier patch fixed the in-tree callers that run these commands
      for purposes other than showing the output directly to the end user
      (the only other in-tree caller is "git bisect visualize", whose output
      directly goes to the end user and should be affected by this patch).
      
      Similar fixes will be needed for end-user scripts that parse the
      output from these commands and expect them to be in the default pretty
      format.
      Signed-off-by: NDenis Cheng <crquan@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      94c22a5e
  28. 03 3月, 2008 2 次提交
  29. 29 2月, 2008 1 次提交
  30. 28 2月, 2008 1 次提交
  31. 26 2月, 2008 1 次提交
    • D
      Improve collection of information for format-patch --cover-letter · 2bda2cf4
      Daniel Barkalow 提交于
      Use the "boundary" feature to find the origin (or find that there are
      multiple origins), and use the actual list of commits to pass to
      shortlog.
      
      This makes all cover letter include shortlogs, and all cover letters
      for series with a single boundary commit include diffstats (if there
      are multiple boundary commits it's unclear what would be meaningful as
      a diffstat). Note that the single boundary test is empirical, not
      theoretical; even a -2 limiting condition will give a diffstat if there's
      only one boundary commit in this particular case.
      Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
      2bda2cf4
  32. 20 2月, 2008 2 次提交