diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-06 21:17:18 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-06 21:29:22 +0100 |
commit | 0899e14ec8d3eb877f4190882c5c3e92d02c460b (patch) | |
tree | 65765da124d2d77ef5aa1670c2d6939aefbab77f /git-debrebase | |
parent | 7c3755874bd9192ce777c5271b70174083919ecd (diff) |
dgit, git-debrebase: Properly make patches with nasty .gitignores.
Specifically:
* When running git status --porcelain, pass --ignored so it
lists ignored files, and handle the ! output that it then
produces.
* Add missing -f to a few git add invocations.
I have done some greps ('git.*add', 'git.*status', 'porcelain', etc.)
to try to find other missed cases and none turned up.
git diff is OK because normally we pass two treeish arguments, in
which case the ignores are ignored by git diff. When we are asking it
to look at the working tree, we are expecting it to ignore untracked
files (whether ignored or not), and diff tracked ones, which is what
it does.
Closes:#903130.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'git-debrebase')
-rwxr-xr-x | git-debrebase | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-debrebase b/git-debrebase index 658884d..04befff 100755 --- a/git-debrebase +++ b/git-debrebase @@ -1504,7 +1504,7 @@ sub make_patches_staged ($) { { local ($!,$?); copy('../gbp-pq-err', \*STDERR); } failedcmd @gbp_cmd; } - runcmd @git, qw(add debian/patches); + runcmd @git, qw(add -f debian/patches); }; } |