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

Re: [PATCH] gitk: do not show local changes for bare repositories

From
Paul Mackerras <paulus@samba.org>
Date
Mar 8, 2008, 11:14 UTC
Message-ID
<18386.29988.380116.517508@cargo.ozlabs.ibm.com>
In-Reply-To
<8875845cb2c0c3a1ac515b8f71e6be77f3266479.1204879048.git.davvid@gmail.com>
David Aguilar writes:
Show 5 quoted lines
> @@ -407,6 +408,7 @@ proc updatecommits {} {
>      foreach vid [array names idpending "$n,*"] {
>  	unset idpending($vid)
>      }
> +    set isbare [expr {[exec git rev-parse --is-bare-repository] == "true"}]

Sorry, I meant do that in updatecommits as well as at startup. You still need that line in the startup code.

Paul.
Previous: David AguilarNext: David Aguilar
Message 4 of 5 in “gitk: do not show local changes for bare repositories”
  1. gitk: do not show local changes for bare repositoriesDavid Aguilar, Mar 6, 2008
  2. Paul MackerrasMar 6, 2008
  3. gitk: do not show local changes for bare repositoriesDavid Aguilar, Mar 7, 2008
  4. Paul MackerrasMar 8, 2008
  5. gitk: do not show local changes when we there is no work treeDavid Aguilar, Mar 10, 2008

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.