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

Re: git-gui Error

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 14, 2007, 06:00 UTC
Message-ID
<20070214060041.GA31871@spearce.org>
In-Reply-To
<20070214022200.GB30884@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> wrote:
Show 14 quoted lines
> Martin Koegler <mkoegler@auto.tuwien.ac.at> wrote:
> > * It there any reason, why tags are not included in the list of possible
> > merge sources in Merge/Local Merge?
> > 
> > It only needs one additional line in do_local_merge:
> >          set cmd [list git for-each-ref]
> >          lappend cmd {--format=%(objectname) %(refname)}
> >          lappend cmd refs/heads
> >          lappend cmd refs/remotes
> > +        lappend cmd refs/tags
> >          set fr_fd [open "| $cmd" r]
> 
> I just didn't consider it.  The way I use git-gui for merges, I never
> merge tags.  But its obviously valid in plain Git.  I'll add it.

This is now pushed to repo.or.cz. It probably won't show up in git.git for at least a few weeks. I want to push through some more features (especially around the blame UI) in git-gui before I bother Junio with another git-gui merge. Besides, Git 1.5.0 (including git-gui 0.6.0.1) just shipped. :)

It turned out to be slightly more difficult than just adding refs/tags, as %(objectname) would be the name of the annotated tag, and we need the commit name to match against rev-list output. So I had to extend the for-each-ref call to also include %(*objectname).

-- 
Shawn.
Previous: Shawn O. PearceNext: Martin Koegler
Message 5 of 11 in “git-gui Error”
  1. Martin KoeglerFeb 13, 2007
  2. Shawn O. PearceFeb 13, 2007
  3. Martin KoeglerFeb 13, 2007
  4. Shawn O. PearceFeb 14, 2007
  5. Shawn O. PearceFeb 14, 2007
  6. Martin KoeglerFeb 14, 2007
  7. Shawn O. PearceFeb 15, 2007
  8. Martin KoeglerFeb 15, 2007
  9. Shawn O. PearceFeb 15, 2007
  10. Martin KoeglerFeb 14, 2007
  11. Shawn O. PearceFeb 15, 2007

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.