[PATCH v2 0/4] git-gui: Add ability to revert selected hunks and lines
- From
Pratyush Yadav <me@yadavpratyush.com>
- Date
- Aug 22, 2019, 22:01 UTC
- Message-ID
- <20190822220107.4153-1-me@yadavpratyush.com>
- In-Reply-To
- <20190819214110.26461-1-me@yadavpratyush.com>
Hi,
This series adds the ability to revert selected lines and hunks in git-gui. Partially based on the patch by Bert Wesarg [0].
The commits can be found in the topic branch 'py/revert-hunks-lines' at https://github.com/prati0100/git-gui/tree/py/revert-hunks-lines
Once reviewed, pull the commits from 415ce3f8582769d1d454b3796dc6c9c847cefa87 till 0a1f4ea92b97e673fda40918dae68deead43bb27, or just munge the patches and apply them locally, whichever you prefer.
Changes in v2: - Add an option to disable the revert confirmation prompt as suggested by Johannes Sixt. - Base the patches on Pat's git-gui tree instead of git.git.
[0] https://public-inbox.org/git/a9ba4550a29d7f3c653561e7029f0920bf8eb008.1326116492.git.bert.wesarg@googlemail.com/
Pratyush Yadav (4): git-gui: Move revert confirmation dialog creation to separate function git-gui: Add option to disable the revert confirmation prompt git-gui: Add the ability to revert selected lines git-gui: Add the ability to revert selected hunk
git-gui.sh | 40 +++++++++++++++++++++++++++++-- lib/diff.tcl | 65 ++++++++++++++++++++++++++++++++++++++++++-------- lib/index.tcl | 31 ++++++++++++++++-------- lib/option.tcl | 1 + 4 files changed, 115 insertions(+), 22 deletions(-)
-- 2.21.0