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

Git log exclude/remotes/branches options not working as expected

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
Oct 18, 2016, 13:33 UTC
Message-ID
<CAHd499C+SACpBrOEk-V4QMKoq2egmMfYSwUN1tZBBhFOTWomRw@mail.gmail.com>
I have 3 remotes registered in my clone:
origin, fork, drive
When I do:
$ git log --oneline --decorate --graph
I only want to see branches under:

refs/heads/* refs/remotes/origin/*

I tried the following:

$ git log --oneline --decorate --graph --simplify-by-decoration --remote=origin topic1..master

However, I still see refs present in the graph for 'drive' and 'fork' remote tracking branches. I can't tell if these are shown simply because other refs not excluded by my options happen to also be at that SHA1, or if the log command is still generating the graph based on other branches.

What I'm expecting is that I literally see NONE of those excluded refs on the graph, even if other included refs also happen to be positioned at those commits. It's the visualization of the refs I'm concerned about: I have a lot of remote tracking branches in those remotes that clutter the view; I'd rather not see them at all (in addition to the graph not considering them when it is being built/generated). Am I misunderstanding the purpose here? How can I achieve my goals? Documentation hasn't really helped me out here.

Next: Junio C Hamano
Message 1 of 2 in “Git log exclude/remotes/branches options not working as expected”
  1. Robert DaileyOct 18, 2016
  2. Junio C HamanoOct 18, 2016

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.