1. 21 1月, 2016 1 次提交
  2. 09 9月, 2015 1 次提交
    • M
      Revert "patman: use -D option for git format-patch" · 8d3595a4
      Masahiro Yamada 提交于
      This reverts commit 19b4a336.
      
      Since that commit, patman generates useless patches for file removal;
      "git format -D" prints only the header but not the diff when deleting
      files, and "git am" always refuses such patches.
      
      The following is the quotation from "man git-format-patch":
      
        -D, --irreversible-delete
          Omit the preimage for deletes, i.e. print only the header but
          not the diff between the preimage and /dev/null. The resulting
          patch is not meant to be applied with patch nor git apply; this
          is solely for people who want to just concentrate on reviewing
          the text after the change. In addition, the output obviously
          lack enough information to apply such a patch in reverse, even
          manually, hence the name of the option.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      8d3595a4
  3. 26 8月, 2015 1 次提交
  4. 24 4月, 2015 1 次提交
  5. 16 2月, 2015 1 次提交
  6. 31 1月, 2015 1 次提交
    • P
      patman: Make dry-run output match real functionality · 2181830f
      Peter Tyser 提交于
      When run with the --dry-run argument patman prints out information
      showing what it would do.  This information currently doesn't line up
      with what patman/git send-email really do.  Some basic examples:
      - If an email address is addressed via "Series-cc" and "Patch-cc" patman
        shows that email address would be CC-ed two times.
      - If an email address is addressed via "Series-to" and "Patch-cc" patman
        shows that email address would be sent TO and CC-ed.
      - If an email address is addressed from a combination of tag aliases,
        get_maintainer.pl output, "Series-cc", "Patch-cc", etc patman shows
        that the email address would be CC-ed multiple times.
      
      Patman currently does try to send duplicate emails like the --dry-run
      output shows, but "git send-email" intelligently removes duplicate
      addresses so this patch shouldn't change the non-dry-run functionality.
      
      Change patman's output and email addressing to line up with the
      "git send-email" logic.  This trims down patman's dry-run output and
      prevents confusion about what patman will do when emails are actually
      sent.
      Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      Tested-by: NSimon Glass <sjg@chromium.org>
      2181830f
  7. 15 1月, 2015 2 次提交
  8. 10 9月, 2014 1 次提交
  9. 06 9月, 2014 4 次提交
  10. 28 8月, 2014 1 次提交
  11. 13 8月, 2014 2 次提交
  12. 28 7月, 2014 1 次提交
    • M
      patman: make "No recipient" checking more tolerant · ee860c60
      Masahiro Yamada 提交于
      If Series-to tag is missing, Patman exits with a message
      "No recipient".
      
      This is just annoying for those who had already added
      sendemail.to configuration.
      
      I guess many developers have
      
        [sendemail]
                to = u-boot@lists.denx.de
      
      in their .git/config because the 'To: u-boot@lists.denx.de' field
      should always be added when sending patches.
      
      That seems more reasonable rather than adding
      'Series-to: u-boot@lists.denx.de' to every patch series.
      
      Patman should exit only when both Series-to tag and sendemail.to
      configuration are mising.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Simon Glass <sjg@chromium.org>
      Acked-by: NSimon Glass <sjg@chromium.org>
      ee860c60
  13. 08 7月, 2014 1 次提交
    • S
      patman: Only apply patches when we know the original HEAD · 4251978a
      Simon Glass 提交于
      When patman applies the patches it checks out a new branch, uses 'git am'
      to apply the patches one by one, and then tries to go back to the old
      branch. If you try this when the branch is 'undefined', this doesn't work
      as patman cannot restore the correct branch after applying the patches.
      It seems that 'undefined' is created by git and is persistent after it is
      created, so that you can end up on quite an old branch.
      
      Add a check for the 'undefined' branch to avoid this.
      Reported-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      4251978a
  14. 10 5月, 2014 1 次提交
  15. 24 7月, 2013 1 次提交
  16. 15 5月, 2013 1 次提交
  17. 19 4月, 2013 1 次提交
  18. 09 4月, 2013 1 次提交
    • S
      patman: Provide option to ignore bad aliases · a1318f7c
      Simon Glass 提交于
      Often it happens that patches include tags which don't have aliases. It
      is annoying that patman fails in this case, and provides no option to
      continue other than adding empty tags to the .patman file.
      
      Correct this by adding a '-t' option to ignore tags that don't exist.
      Print a warning instead.
      
      Since running the tests is not a common operation, move this to --test
      instead, to reserve -t for this new option.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NDoug Anderson <dianders@chromium.org>
      a1318f7c
  19. 05 4月, 2013 4 次提交
  20. 01 2月, 2013 2 次提交
    • D
      patman: Add support for settings in .patman · 8568baed
      Doug Anderson 提交于
      This patch adds support for a [settings] section in the .patman file.
      In this section you can add settings that will affect the default
      values for command-line options.
      
      Support is added in a generic way such that any setting can be updated
      by just referring to the "dest" of the option that is passed to the
      option parser.  At the moment options that would make sense to put in
      settings are "ignore_errors", "process_tags", and "verbose".  You
      could override them like:
      
       [settings]
       ignore_errors: True
       process_tags: False
       verbose: True
      
      The settings functionality is also used in a future change which adds
      support for per-project settings.
      Signed-off-by: NDoug Anderson <dianders@chromium.org>
      8568baed
    • D
      patman: Allow tests to run even if patman is in the path · a970048e
      Doug Anderson 提交于
      Several of the patman doctests assume that patman was run with:
        ./patman
      
      Fix them so that they work even if patman is run with just "patman"
      (because patman is in the path).
      Signed-off-by: NDoug Anderson <dianders@chromium.org>
      Acked-by: NSimon Glass <sjg@chromium.org>
      a970048e
  21. 20 10月, 2012 1 次提交
  22. 20 6月, 2012 1 次提交
  23. 21 4月, 2012 1 次提交
    • S
      Add 'patman' patch generation, checking and submission script · 0d24de9d
      Simon Glass 提交于
      What is this?
      
      =============
      
      This tool is a Python script which:
      - Creates patch directly from your branch
      - Cleans them up by removing unwanted tags
      - Inserts a cover letter with change lists
      - Runs the patches through checkpatch.pl and its own checks
      - Optionally emails them out to selected people
      
      It is intended to automate patch creation and make it a less
      error-prone process. It is useful for U-Boot and Linux work so far,
      since it uses the checkpatch.pl script.
      
      It is configured almost entirely by tags it finds in your commits.
      This means that you can work on a number of different branches at
      once, and keep the settings with each branch rather than having to
      git format-patch, git send-email, etc. with the correct parameters
      each time. So for example if you put:
      
      in one of your commits, the series will be sent there.
      
      See the README file for full details.
      END
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      0d24de9d