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

Re: [PATCH] git-gui: allow Ctrl+T to toggle multiple paths (Re: [BUG] git gui can't commit multiple files)

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 1, 2017, 23:45 UTC
Message-ID
<20171201234556.GE18220@aiede.mtv.corp.google.com>
In-Reply-To
<20171201234013.GD18220@aiede.mtv.corp.google.com>
Jonathan Nieder wrote:
Show 19 quoted lines
> From: Johannes Schindelin <johannes.schindelin@gmx.de>
> Subject: git-gui: allow Ctrl+T to toggle multiple paths
>
> In the Unstaged Changes panel, selecting multiple lines (using
> shift+click) and pressing ctrl+t to stage them causes one file to be
> staged instead of all of the selected files.  The same also happens
> when unstaging files.
>
> This regression appears to have been introduced by gitgui-0.21.0~7^2~1
> (Allow keyboard control to work in the staging widgets, 2016-10-01).
>
> Also reported by zosrothko as a Git-for-Windows issue:
> https://github.com/git-for-windows/git/issues/1012
>
> [jn: fleshed out commit message]
>
> Reported-by: Timon <timon37@gmail.com>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> Signed-off-by: Jonathan Nieder <jrn@google.com>
Gah, this should say:
Signed-off-by; Jonathan Nieder <jrnieder@gmail.com>
[...]
Show 9 quoted lines
>> I applied it locally to git-2.15.0 and can confirm it fixed the problem for me.
>> If you need any more info/help from me, or would like me to test
>> anything, feel free to ask.
>
> Thanks for this pointer.  I'm including the patch here so the project
> can consider applying it (it doesn't appear to have been sent upstream
> before).  I have not tested it or verified the claim it makes about
> what change introduced this regression --- if you're able to help with
> that, that would be welcome.
Can you bisect?  That is:
 git clone git://repo.or.cz/git-gui
 cd git-gui
 git bisect start
 git bisect good gitgui-0.20.0
 git bisect bad gitgui-0.21.0
Then cut to the chase:
 git checkout gitgui-0.21.0~7^2~1
 ... test test test ...
 git bisect (good|bad)
 git checkout gitgui-0.21.0~7^2~1^
 ... test test test ...
 git bisect (good|bad)
and follow the instructions if it suggests testing additional versions.

Then I'll be happy to re-send the patch with the results from your testing.

Thanks again, Jonathan

Previous: Jonathan NiederNext: Timon
Message 6 of 7 in “[BUG] git gui can't commit multiple files”
  1. TimonDec 4, 2016
  2. David AguilarDec 4, 2016
  3. TimonDec 5, 2016
  4. TimonDec 1, 2017
  5. git-gui: allow Ctrl+T to toggle multiple paths (Re: [BUG] git gui can't commit multiple files)Jonathan Nieder, Dec 1, 2017
  6. Jonathan NiederDec 1, 2017
  7. TimonDec 3, 2017

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.