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

Re: feature request, git-gui: add hotkey to toggle amend/new

From
Pratyush Yadav <me@yadavpratyush.com>
Date
Sep 11, 2019, 18:34 UTC
Message-ID
<20190911183419.jea27ctvcdl5olp3@yadavpratyush.com>
In-Reply-To
<CAGr--=Jdj+kJmV7z3vhYW+s129+0+KgbNYw8NFPmSASRYMTdbg@mail.gmail.com>
On 11/09/19 12:27PM, Birger Skogeng Pedersen wrote:
Show 6 quoted lines
> Hi Pratyush,
> 
> I'm hoping this will be merged, even without changing the radio
> selectors to a checkbox(?). The patch from Bert resolves the issue I
> raised about wanting the hotkey.
> What do you think?
What do you mean by "this"? I am guessing you mean [0].

I'm afraid that patch conflicts with Bert's change [1] to using a checkbox. Since both patches are in flight, it makes more sense to base your work off his. If I merge your patch now, I'll have to revert it as soon as it is time to merge Bert's, and then rework your patch.

Also, after Bert's patch, the toggling becomes much simpler. All you'd have to do is something like:

  bind . <$M1B-Key-e> {
	# Toggle commit type.
	set commit_type_is_amend [expr {!$commit_type_is_amend}]
	do_select_commit_type
  }

Maybe a cleaner way is possible, but this is what I could come up with for toggling a boolean.

So can you please send a re-roll based on Bert's patch? I took a quick glance at it, and it seems mostly correct. I have a couple of comments, so some things might change based on the discussion, but I don't think it should affect your change too much.

[0] https://public-inbox.org/git/20190904175943.11924-1-birger.sp@gmail.com/ [1] https://public-inbox.org/git/ab1f68cc8552e405c9d04622be1e728ab81bda17.1567713659.git.bert.wesarg@googlemail.com/

-- 
Regards,
Pratyush Yadav
Previous: Birger Skogeng PedersenNext: Pratyush Yadav
Message 24 of 27 in “feature request, git-gui: add hotkey to toggle amend/new”
  1. Birger Skogeng PedersenAug 31, 2019
  2. Birger Skogeng PedersenSep 2, 2019
  3. Bert WesargSep 2, 2019
  4. Birger Skogeng PedersenSep 2, 2019
  5. Add hotkey to toggle "Amend Last Commit" radio selectorBirger Skogeng Pedersen, Sep 2, 2019
  6. Bert WesargSep 3, 2019
  7. Bert WesargSep 3, 2019
  8. Bert WesargSep 3, 2019
  9. Bert WesargSep 2, 2019
  10. Bert WesargSep 2, 2019
  11. Birger Skogeng PedersenSep 3, 2019
  12. Pratyush YadavSep 3, 2019
  13. Birger Skogeng PedersenSep 3, 2019
  14. Pratyush YadavSep 3, 2019
  15. DavidSep 3, 2019
  16. Pratyush YadavSep 3, 2019
  17. Johannes SixtSep 4, 2019
  18. Pratyush YadavSep 4, 2019
  19. Birger Skogeng PedersenSep 4, 2019
  20. Johannes SixtSep 4, 2019
  21. Bert WesargSep 4, 2019
  22. David AguilarSep 10, 2019
  23. Birger Skogeng PedersenSep 11, 2019
  24. Pratyush YadavSep 11, 2019
  25. Pratyush YadavSep 11, 2019
  26. DavidSep 3, 2019
  27. Bert WesargSep 3, 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.