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

Re: [PATCH] blame: can specify shas of commits to ignore on command line

From
Dylan Reid <dgreid@gmail.com>
Date
May 4, 2010, 21:46 UTC
Message-ID
<j2sfd211a421005041446ub9c2247ai484c2473df856b31@mail.gmail.com>
In-Reply-To
<4BE0918C.9090204@lsrfire.ath.cx>
Thanks for the speedy reply.
> Only the long option --ignore-commit works with your patch, -I doesn't.
>

Correct. I took that out because I didn't want to use "-I' which could eventually be used by a more commonly used feature. Do you agree or do you think it is worth using it. It's a UI decision I didn't want to make.

Show 5 quoted lines
>
> This function was moved from below, but it seems to be indented with
> three spaces instead of tabs now.  Adding a declaration without moving
> the function would avoid that and result in a smaller patch.
>
Good catch, I'll do that and re-send.
Show 10 quoted lines
>
> An ignored commit can still be blamed if there is no other commit to
> pass it on.  So e.g. the initial commit for the file could end up being
> blamed for lines that were added by later commits which are being
> ignored.  That may look confusing.
>
> Would it make sense to pass the blame to some kind of null commit, i.e.
> a special marker that says "I could tell you who is to blame for this
> line but you said you don't want to know"?
>

A null commit could work. I think the behavior should be to not ignore the commit. Meaning if you specify a commit that introduced a line of code that line of code will still be blamed on the ignored commit. Does That sound logical or is it too confusing?

Thanks,
Dylan
Previous: René ScharfeNext: Junio C Hamano
Message 3 of 8 in “blame: can specify shas of commits to ignore on command line”
  1. blame: can specify shas of commits to ignore on command lineDylan Reid, May 4, 2010
  2. René ScharfeMay 4, 2010
  3. Dylan ReidMay 4, 2010
  4. Junio C HamanoMay 4, 2010
  5. Dylan ReidMay 4, 2010
  6. Junio C HamanoMay 5, 2010
  7. Dylan ReidMay 5, 2010
  8. cnighswongerMar 8, 2012

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.