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

Third newbie question: gitk --all refresh?

From
RGRomano Giannetti <romanol@upcomillas.es>
Date
Jan 31, 2006, 16:46 UTC
Message-ID
<20060131164648.GA1859@pern.dea.icai.upcomillas.es>

I have a little problem: is gitk supposed to be possibly run in background and then refresh when told? It seems to me that it can track only some changes... Better let git (1.0.8) speak:

pern:~/% mkdir gitk_r
pern:~/% cd gitk_r
pern:~/gitk_r% git init-db
defaulting to local storage area
pern:~/gitk_r% echo "one" > one.txt
pern:~/gitk_r% echo "two" > two.txt
pern:~/gitk_r% git add .
pern:~/gitk_r% git commit -a -m "commit 1"
Committing initial tree efa4c546776cd5539cb54969a5e1c110b3232ee2
pern:~/gitk_r% git branch
* master
pern:~/gitk_r% git checkout -b second master
pern:~/gitk_r% git branch
  master
* second
pern:~/gitk_r% echo "three" > three.txt
pern:~/gitk_r% git add three.txt
pern:~/gitk_r% ls
one.txt  three.txt  two.txt
pern:~/gitk_r% git commit -a -m "commit second"
pern:~/gitk_r% echo "one one" >> one.txt
pern:~/gitk_r% git commit -a -m "commit on second #2"
pern:~/gitk_r% git checkout master
pern:~/gitk_r% echo "two two" >> two.txt
pern:~/gitk_r% gitk --all &
[1] 787
pern:~/gitk_r% : Now git is showing ok
pern:~/gitk_r% git pull . second
Trying really trivial in-index merge...
Wonderful.
In-index merge
 one.txt   |    1 +
 three.txt |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
 create mode 100644 three.txt
pern:~/gitk_r% : Now gitk refreshes ok

What I mean if that I select update - reread references it's all ok, I see the merge.

pern:~/gitk_r% git branch -d second Deleted branch second. pern:~/gitk_r% : Now gitk did not delete the second branch

What I mean that I can do the same update - reread references but "second" branch stay there...

pern:~/gitk_r% : but pern:~/gitk_r% gitk --all pern:~/gitk_r% : this is ok

That is, the two instances of gitk --all are showing different things: the "old" running one continue to show the old "second" branch in green.

Is this supposed to be like that? Or is "driver" (aka /me) error?
   Romano
-- 
Romano Giannetti             -  Univ. Pontificia Comillas (Madrid, Spain)
Electronic Engineer - phone +34 915 422 800 ext 2416  fax +34 915 596 569
http://www.dea.icai.upcomillas.es/romano/
Message 1 of 1 in “Third newbie question: gitk --all refresh?”
  1. Romano GiannettiJan 31, 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.