diff options
author | Thomas Rast <trast@student.ethz.ch> | 2008-07-03 00:00:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-02 15:31:49 -0700 |
commit | ac083c47ea226b470afab39d975e718a475a3c78 (patch) | |
tree | 2a0306b5162a8f9dd64068f18d57183b8013b9e8 /Documentation/git-verify-tag.txt | |
parent | git-add--interactive: remove hunk coalescing (diff) | |
download | tgif-ac083c47ea226b470afab39d975e718a475a3c78.tar.xz |
git-add--interactive: manual hunk editing mode
Adds a new option 'e' to the 'add -p' command loop that lets you edit
the current hunk in your favourite editor.
If the resulting patch applies cleanly, the edited hunk will
immediately be marked for staging. If it does not apply cleanly, you
will be given an opportunity to edit again. If all lines of the hunk
are removed, then the edit is aborted and the hunk is left unchanged.
Applying the changed hunk(s) relies on Johannes Schindelin's new
--recount option for git-apply.
Note that the "real patch" test intentionally uses
(echo e; echo n; echo d) | git add -p
even though the 'n' and 'd' are superfluous at first sight. They
serve to get out of the interaction loop if git add -p wrongly
concludes the patch does not apply.
Many thanks to Jeff King <peff@peff.net> for lots of help and
suggestions.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-verify-tag.txt')
0 files changed, 0 insertions, 0 deletions