threads / discuss / 18168

Gitk - Seeing just a specific remote ?

Subject: Gitk - Seeing just a specific remote ?

## tl;dr

3 messages between Mar 6, 2009 and Mar 8, 2009.

replies: 2people: 2as markdown or json

Aneesh Bhasin· Mar 6, 2009, 05:58 UTC · lore
Hi All,

I have a git repository (say, new_develop) in which a remote repository (say old_develop) is also there of some older work with the associated remote branches. Is there a way to see all the branches of only this remote older_develop repository graphically in gitk - something that shows me the same thing that doing a 'gitk --all' would have shown had I done it from the older_develop repository itself ? If I say 'gitk --all' (in new_develop) it shows me all the branches (local as well as remote). Specifying 'gitk --remotes' also shows all the remote branches (not just from the old_develop remote repo) ? Is there some other way that I am missing ? I have seen the man page of git-rev-list too but there doesn't sem to be a way to do it.

Regards, Aneesh

Johannes Sixt· Mar 6, 2009, 08:04 UTC · re: Aneesh Bhasin · lore

Re: Gitk - Seeing just a specific remote ?

Aneesh Bhasin schrieb:
Show 11 quoted lines
> I have a git repository (say, new_develop) in which a remote
> repository (say old_develop) is also there of some older work with the
> associated remote branches. Is there a way to see all  the branches of
> only this remote older_develop repository graphically in gitk -
> something that shows me the same thing that doing a 'gitk --all' would
> have shown had I done it from the older_develop repository itself ? If
> I say 'gitk --all' (in new_develop) it shows me all the branches
> (local as well as remote). Specifying 'gitk --remotes' also shows all
> the remote branches (not just from the old_develop remote repo) ? Is
> there some other way that I am missing ? I have seen the man page of
> git-rev-list too but there doesn't sem to be a way to do it.
gitk has an option, --argscmd, that you can use:
  gitk --argscmd="git for-each-ref --format='%(refname)'
refs/remotes/old_develop/*"
-- Hannes
Aneesh Bhasin· Mar 8, 2009, 13:01 UTC · re: Johannes Sixt · lore

Re: Gitk - Seeing just a specific remote ?

On Fri, Mar 6, 2009 at 1:34 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
Show 18 quoted lines
> Aneesh Bhasin schrieb:
>> I have a git repository (say, new_develop) in which a remote
>> repository (say old_develop) is also there of some older work with the
>> associated remote branches. Is there a way to see all  the branches of
>> only this remote older_develop repository graphically in gitk -
>> something that shows me the same thing that doing a 'gitk --all' would
>> have shown had I done it from the older_develop repository itself ? If
>> I say 'gitk --all' (in new_develop) it shows me all the branches
>> (local as well as remote). Specifying 'gitk --remotes' also shows all
>> the remote branches (not just from the old_develop remote repo) ? Is
>> there some other way that I am missing ? I have seen the man page of
>> git-rev-list too but there doesn't sem to be a way to do it.
>
> gitk has an option, --argscmd, that you can use:
>
>  gitk --argscmd="git for-each-ref --format='%(refname)'
> refs/remotes/old_develop/*"
>
Thanks. That was exactly what I was looking for.

← back to recent threads