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

Re: Gitk - Seeing just a specific remote ?

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Mar 6, 2009, 08:04 UTC
Message-ID
<49B0D8FD.6070807@viscovery.net>
In-Reply-To
<f662f0210903052158q77aa0f2fo92c4f4a09c13780e@mail.gmail.com>
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
Previous: Aneesh BhasinNext: Aneesh Bhasin
Message 2 of 3 in “Gitk - Seeing just a specific remote ?”
  1. Aneesh BhasinMar 6, 2009
  2. Johannes SixtMar 6, 2009
  3. Aneesh BhasinMar 8, 2009

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.