git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/1] Allow the 'revert' option in Git Gui to operate on untracked files, deleting them

From
Pratyush Yadav <me@yadavpratyush.com>
Date
Oct 29, 2019, 21:43 UTC
Message-ID
<20191029214349.iffk37psv3n4v47y@yadavpratyush.com>
In-Reply-To
<CAPSOpYsA9n6Y1vH1_+vRTCV7Mrvox4L2LpQmpXBnpH8ke0yDhQ@mail.gmail.com>
On 29/10/19 03:25PM, Jonathan Gilbert wrote:
Show 10 quoted lines
> That's kind of neat, I wasn't aware of that facet of Git Gui :-) But,
> it isn't quite the same feature:
> 
> * It has to be manually set up on each installation.
> * It invokes an external process, I don't know if it's safe to assume
> that "rm" will work on all platforms (though I just tested it on my
> Windows installation and it worked).
> * It doesn't remove directories that it makes empty.
> * I don't see a way to bind it to a keyboard shortcut. That could just
> be me not knowing enough about custom tools, though. :-)

You can't as of now. Harish was in the process of implementing this [0], but I left some comments and he hasn't re-rolled the patch since. So unless I find some time to tie it up, this will remain un-implemented.

Of course, if you'd like to see that feature in git-gui, feel free to pick it up and brush up the changes :). The latest version can be found at [1]. But it does not have a proper commit message (apart from the other changes I suggested) since Harish did not format the patch correctly when sending.

Show 5 quoted lines
> * It only processes the first file selected.
> * If I select a tracked file, it will still delete it, and the feature
> I'm looking for is more of a "return repository to clean state" type
> function, like "revert" already is but extended to handle files that
> you can't actually "git revert".

[0] https://public-inbox.org/git/CACV9s2MQCP04QASgt0xhi3cSNPSKjwXTufxmZQXAUNvnWD9DSw@mail.gmail.com/ [1] https://github.com/prati0100/git-gui/tree/hk/custom-keyboard-shortcuts

-- 
Regards,
Pratyush Yadav
Previous: Jonathan Gilbert
Message 10 of 10 in “Allow the 'revert' option in Git Gui to operate on untracked files, deleting them”
  1. 0/1 Allow the 'revert' option in Git Gui to operate on untracked files, deleting themJonathan Gilbert via GitGitGadget, Oct 28, 2019
  2. 1/1 git-gui: Revert untracked files by deleting themJonathan Gilbert via GitGitGadget, Oct 28, 2019
  3. Pratyush YadavOct 29, 2019
  4. Jonathan GilbertOct 29, 2019
  5. brian m. carlsonOct 29, 2019
  6. Jonathan GilbertOct 29, 2019
  7. Bert WesargOct 29, 2019
  8. Jonathan GilbertOct 29, 2019
  9. Jonathan GilbertOct 29, 2019
  10. Pratyush YadavOct 29, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.