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

Re: gitk feature request..

From
Junio C Hamano <junkio@cox.net>
Date
Nov 7, 2006, 22:34 UTC
Message-ID
<7vslgu28do.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<17745.1213.22769.420355@cargo.ozlabs.ibm.com>
Paul Mackerras <paulus@samba.org> writes:
> Good idea.  Junio, is there a canonical place under .git where gitk
> should put such things?

Well, we do not design things in advance but tend to let things evolve, which probably is a bad habit but I am not sure how else we can avoid overdesigning before knowing the needs.

The existing state-keeping programs seem to keep their stuff immediately under $GIT_DIR. Examples are:

	.git/description (gitweb)
        .git/cvs-authors (cvsimport)
        .git/gitcvs.<branch>.sqlite (cvsserver)

So, .git/gitk-<foo> (or .git/gitk/<bar>) would be in line with others. We _might_ want to have a standard plan to keep Porcelains stepping on each other's toes, and probably migrating everybody to .git/aux/{common,gitcvs,gitk,...}/<foo> would be a sane thing to do. description and cvs-authors could probably be shared across Porcelains, so I do not think we mind leaving them in the current place or throw them in .git/aux/common/

Having said that, is the gitk view supposed to be shared across users of a single repository?

If you imagine yourself logging into kernel.org (perhaps X forwarded over ssh to your local machine) and browsing /pub/scm/git/git.git/, the repository itself would not be writable by you. Even if it were, I do not think you would want me to reuse the view you used from there next time I did the same on the same repository.

It might make sense to give --state=dir/ parameter to gitk and tell it to use that directory to keep persistent data. Also I seem to recall you already have one file under $HOME/ to make window geometry or something persistent.

Previous: Paul MackerrasNext: Pierre Dumuid
Message 3 of 7 in “gitk feature request..”
  1. Pierre Marc DumuidOct 9, 2006
  2. Paul MackerrasNov 7, 2006
  3. Junio C HamanoNov 7, 2006
  4. Pierre DumuidNov 8, 2006
  5. Marco CostalbaNov 11, 2006
  6. Jakub NarebskiNov 11, 2006
  7. Petr BaudisNov 11, 2006

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.