1. 30 5月, 2020 2 次提交
    • S
      patman: Suppress empty changelog entries · b0436b94
      Sean Anderson 提交于
      Patman outputs a line for every edition of the series in every patch,
      regardless of whether any changes were made. This can result in many
      redundant lines in patch changelogs, especially when a patch did not exist
      before a certain revision. For example, the existing behaviour could result
      in a changelog of
      
      Changes in v7: None
      Changes in v6: None
      Changes in v5:
      - Make a change
      
      Changes in v4: None
      
      Changes in v3:
      - New
      
      Changes in v2: None
      
      With this patch applied and with --no-empty-changes, the same patch would
      look like
      
      (no changes since v5)
      
      Changes in v5:
      - Make a change
      
      Changes in v3:
      - New
      
      This is entirely aesthetic, but I think it reduces clutter, especially for
      patches added later on in a series.
      Signed-off-by: NSean Anderson <seanga2@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      b0436b94
    • B
      patman: Add an option to create patches without binary contents · 14aa35ad
      Bin Meng 提交于
      Some mailing lists have size limits and when we add binary contents
      to our patches it's easy to exceed the size limits.
      
      Git supports a command line option "--no-binary" to generate patches
      without any binary contents. Add an option in patman to handle this.
      Note with this option patches cannot be applied properly, but they
      are still useful for code review.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      14aa35ad
  2. 15 10月, 2019 1 次提交
    • D
      patman: Use the Change-Id, version, and prefix in the Message-Id · 833e4192
      Douglas Anderson 提交于
      As per the centithread on ksummit-discuss [1], there are folks who
      feel that if a Change-Id is present in a developer's local commit that
      said Change-Id could be interesting to include in upstream posts.
      Specifically if two commits are posted with the same Change-Id there's
      a reasonable chance that they are either the same commit or a newer
      version of the same commit.  Specifically this is because that's how
      gerrit has trained people to work.
      
      There is much angst about Change-Id in upstream Linux, but one thing
      that seems safe and non-controversial is to include the Change-Id as
      part of the string of crud that makes up a Message-Id.
      
      Let's give that a try.
      
      In theory (if there is enough adoption) this could help a tool more
      reliably find various versions of a commit.  This actually might work
      pretty well for U-Boot where (I believe) quite a number of developers
      use patman, so there could be critical mass (assuming that enough of
      these people also use a git hook that adds Change-Id to their
      commits).  I was able to find this git hook by searching for "gerrit
      change id git hook" in my favorite search engine.
      
      In theory one could imagine something like this could be integrated
      into other tools, possibly even git-send-email.  Getting it into
      patman seems like a sane first step, though.
      
      NOTE: this patch is being posted using a patman containing this patch,
      so you should be able to see the Message-Id of this patch and see that
      it contains my local Change-Id, which ends in 2b9 if you want to
      check.
      
      [1] https://lists.linuxfoundation.org/pipermail/ksummit-discuss/2019-August/006739.htmlSigned-off-by: NDouglas Anderson <dianders@chromium.org>
      833e4192
  3. 23 6月, 2018 1 次提交
  4. 07 5月, 2018 1 次提交
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      83d290c5
  5. 12 9月, 2017 1 次提交
  6. 06 2月, 2016 1 次提交
  7. 29 7月, 2015 1 次提交
  8. 24 4月, 2015 1 次提交
  9. 31 1月, 2015 1 次提交
  10. 22 9月, 2014 1 次提交
  11. 10 5月, 2014 1 次提交
  12. 23 3月, 2014 1 次提交
    • S
      patman: Use Patch-cc: instead of Cc: · 659c89da
      Simon Glass 提交于
      Add a new Patch-cc: tag which performs the service now provided by
      the Cc: tag. The Cc: tag is interpreted by git send-email but
      ignored by patman.
      
      So now:
      
        Cc: patman does nothing. (git send-email can cc patches)
        Patch-cc: patman Cc's patch and removes this tag from the patch
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      659c89da
  13. 22 11月, 2013 1 次提交
  14. 24 7月, 2013 1 次提交
  15. 16 7月, 2013 1 次提交
  16. 09 4月, 2013 1 次提交
  17. 05 4月, 2013 3 次提交
  18. 01 2月, 2013 4 次提交
    • D
      patman: Add the concept of multiple projects · a1dcee84
      Doug Anderson 提交于
      There are cases that we want to support different settings (or maybe
      even different aliases) for different projects.  Add support for this
      by:
      * Adding detection for two big projects: U-Boot and Linux.
      * Adding default settings for Linux (U-Boot is already good with the
        standard patman defaults).
      * Extend the new "settings" feature in .patman to specify per-project
        settings.
      Signed-off-by: NDoug Anderson <dianders@chromium.org>
      Acked-by: NSimon Glass <sjg@chromium.org>
      a1dcee84
    • 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: Add a call to get_maintainer.pl if it exists · 21a19d70
      Doug Anderson 提交于
      For Linux the best way to figure out where to send a patch is with the
      "get_maintainer.pl" script.  Add support for calling it from patman.
      Support is added unconditionally for "scripts/get_maintainer.pl" in
      case it is helpful for any other projects.
      Signed-off-by: NDoug Anderson <dianders@chromium.org>
      21a19d70
    • D
      patman: Add all CC addresses to the cover letter · 31187255
      Doug Anderson 提交于
      If we're sending a cover letter make sure to CC everyone that we're
      CCing on each of the individual patches.
      Signed-off-by: NDoug Anderson <dianders@chromium.org>
      31187255
  19. 16 10月, 2012 1 次提交
  20. 20 6月, 2012 2 次提交
  21. 30 4月, 2012 2 次提交
  22. 22 4月, 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