From: Simon Glass Date: Mon, 5 Jun 2017 13:08:14 -0600 Subject: [U-Boot] [PATCH 1/2] moveconfig.py: All piping in 'git show --stat' output Message-ID: <20170605190815.1259-1-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de It is useful to be able to process only a subset of boards to save time. Often that subset is defined by the defconfig files in a git commit. This change allows things like: ./tools.moveconfig.py -b ./tools/moveconfig.py -i CONFIG_... # add some 'imply' statements to Kconfig files git show --stat | ./tools/moveconfig.py -s -d - Where the commit contains defconfig files, this will reprocess them to take account of the imply statements that you added. Signed-off-by: Simon Glass --- tools/moveconfig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 09c5a7e5cd..4295b47d7c 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -405,6 +405,8 @@ def get_matched_defconfigs(defconfigs_file): line = line.strip() if not line: continue # skip blank lines silently + if ' ' in line: + line = line.split(' ')[0] # handle 'git log' input matched = get_matched_defconfig(line) if not matched: print >> sys.stderr, "warning: %s:%d: no defconfig matched '%s'" % \ -- 2.13.0.506.g27d5fe0cd-goog