From b47dfe9e9c86be97fc07c4c04e26a303730f76c6 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 11 Jan 2009 22:21:48 -0800 Subject: [PATCH] git-am: add --directory= option Thanks to a200337 (git-am: propagate -C, -p options as well, 2008-12-04) and commits around it, "git am" is equipped to correctly propagate the command line flags such as -C/-p/-whitespace across a patch failure and restart. It is trivial to support --directory option now, resurrecting previous attempts by Kevin and Simon. Signed-off-by: Junio C Hamano --- Documentation/git-am.txt | 7 ++----- git-am.sh | 17 +++++++++++++---- t/t4252-am-options.sh | 8 ++++++++ t/t4252/am-test-5-1 | 20 ++++++++++++++++++++ t/t4252/am-test-5-2 | 15 +++++++++++++++ 5 files changed, 58 insertions(+), 9 deletions(-) create mode 100644 t/t4252/am-test-5-1 create mode 100644 t/t4252/am-test-5-2 diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index b9c6fac74..5cbbe7693 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -11,7 +11,7 @@ SYNOPSIS [verse] 'git am' [--signoff] [--keep] [--utf8 | --no-utf8] [--3way] [--interactive] - [--whitespace=