Re: gitk: visually indicate whether a tag exists on a remote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 9, 2025 at 1:37 AM Adi Shavit <adishavit@xxxxxxxxx> wrote:
> When browsing history in **gitk**, I often need to know whether a tag I
> see on a commit was:
>
>   * fetched from a remote (and therefore shared with collaborators), or
>   * created only in my local repository and not yet pushed.

This information is not (currently) available in Git.

> For branches this distinction is obvious because gitk lists local and
> remote-tracking branch heads separately.  Tags, however, are shown in a
> single list, so a locally added tag and one fetched from ­–‐say–‐
> `origin` look identical.

They not only look identical, they *are* identical*.

To make these show up separately, you would have to do at least one of
the following:

 * collect information from the remote in gitk itself (run `git ls-remote`); or
 * collect information from the remote during `git fetch`

The latter would be possible by adding the concept of "remote tags" to
Git, but this is a pretty big change (not technically difficult but
probably controversial).

Chris





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux