git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Re: [Ksummit-discuss] checkkpatch (in)sanity ?
       [not found]     ` <alpine.DEB.2.10.1608281152080.3321@hadrien>
@ 2016-08-28 19:52       ` Joe Perches
  2016-08-28 20:35         ` Jiri Kosina
  2016-08-28 21:24         ` Dennis Kaarsemaker
  0 siblings, 2 replies; 4+ messages in thread
From: Joe Perches @ 2016-08-28 19:52 UTC (permalink / raw)
  To: Julia Lawall, Alexey Dobriyan, git
  Cc: Levin, Alexander, Greg KH, Sasha Levin,
	ksummit-discuss@lists.linuxfoundation.org, LKML

On Sun, 2016-08-28 at 11:59 +0200, Julia Lawall wrote:
> On Sun, 28 Aug 2016, Alexey Dobriyan wrote:
[]
> > The problem is that c-h.pl generates noise in the commit history and
> > makes git-blame less useful than it can be.
> 
> Could it be that this is a problem with git blame, rather than with
> checkpatch?  Last year there was a discussion on this list about how there
> is an option to git blame that will cause it to step through the history,
> and not show only the most recent patch that has modified a given line.

It is more or less an ease-of-use limitation of git blame.

There are some that want an ncurses only version of git blame
that could
use arrow-key style navigation for historical commit
line-ranges.

git gui blame kind of works, but it's not ncurses/text based.
git-cola kind of works too, but it's not text based either.

Are there other existing tools for blame history viewing?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Ksummit-discuss] checkkpatch (in)sanity ?
  2016-08-28 19:52       ` [Ksummit-discuss] checkkpatch (in)sanity ? Joe Perches
@ 2016-08-28 20:35         ` Jiri Kosina
  2016-08-28 21:24         ` Dennis Kaarsemaker
  1 sibling, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2016-08-28 20:35 UTC (permalink / raw)
  To: Joe Perches
  Cc: Julia Lawall, Alexey Dobriyan, git, Greg KH, LKML, Sasha Levin,
	ksummit-discuss@lists.linuxfoundation.org

On Sun, 28 Aug 2016, Joe Perches wrote:

> Are there other existing tools for blame history viewing?

fugitive vim plugin has 'Gblame' command, which I personally find rather 
useful, and given the text-oriented nature could potentially be useful for 
your needs.

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Ksummit-discuss] checkkpatch (in)sanity ?
  2016-08-28 19:52       ` [Ksummit-discuss] checkkpatch (in)sanity ? Joe Perches
  2016-08-28 20:35         ` Jiri Kosina
@ 2016-08-28 21:24         ` Dennis Kaarsemaker
  2016-08-28 21:57           ` Joe Perches
  1 sibling, 1 reply; 4+ messages in thread
From: Dennis Kaarsemaker @ 2016-08-28 21:24 UTC (permalink / raw)
  To: Joe Perches, Julia Lawall, Alexey Dobriyan, git
  Cc: Levin, Alexander, Greg KH, Sasha Levin,
	ksummit-discuss@lists.linuxfoundation.org, LKML

On zo, 2016-08-28 at 12:52 -0700, Joe Perches wrote:
> On Sun, 2016-08-28 at 11:59 +0200, Julia Lawall wrote:
> > 
> > On Sun, 28 Aug 2016, Alexey Dobriyan wrote:
> []
> > 
> > > 
> > > The problem is that c-h.pl generates noise in the commit history
> > > and
> > > makes git-blame less useful than it can be.
> > Could it be that this is a problem with git blame, rather than with
> > checkpatch?  Last year there was a discussion on this list about
> > how there
> > is an option to git blame that will cause it to step through the
> > history,
> > and not show only the most recent patch that has modified a given
> > line.
> It is more or less an ease-of-use limitation of git blame.
> 
> There are some that want an ncurses only version of git blame
> that could
> use arrow-key style navigation for historical commit
> line-ranges.
> 
> git gui blame kind of works, but it's not ncurses/text based.
> git-cola kind of works too, but it's not text based either.
> 
> Are there other existing tools for blame history viewing?

tig has a neat way of doing blame history digging: do a `tig blame
filename`, select a line and hit the comma key to re-blame from the
parent of the commit that was blamed for that line.

(hat tip to Jeff King who pointed out this trick recently)

D.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Ksummit-discuss] checkkpatch (in)sanity ?
  2016-08-28 21:24         ` Dennis Kaarsemaker
@ 2016-08-28 21:57           ` Joe Perches
  0 siblings, 0 replies; 4+ messages in thread
From: Joe Perches @ 2016-08-28 21:57 UTC (permalink / raw)
  To: Dennis Kaarsemaker, Julia Lawall, Alexey Dobriyan, git
  Cc: Levin, Alexander, Greg KH, Sasha Levin,
	ksummit-discuss@lists.linuxfoundation.org, LKML

On Sun, 2016-08-28 at 23:24 +0200, Dennis Kaarsemaker wrote:

> > There are some that want an ncurses only version of git blame
> > that could use arrow-key style navigation for historical commit
> > line-ranges.
> > 
> > git gui blame kind of works, but it's not ncurses/text based.
> > git-cola kind of works too, but it's not text based either.
> > 
> > Are there other existing tools for blame history viewing?
> tig has a neat way of doing blame history digging: do a `tig blame
> filename`, select a line and hit the comma key to re-blame from the
> parent of the commit that was blamed for that line.

Thanks, of course I neglected to mention tig.

What I think some here want is the ability to view
back and forth from old to new rather than just split
the window horizontally with the commit content.

Basically, apply the patch hunks for a specific range
to see color coded changes rather just show the entire
patch in a separate view.

Sure, seeing the commit log and patch is useful.

Seeing the block of code pre and post patch for the
specific section can be more useful.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-28 21:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1472330452.26978.23.camel@perches.com>
     [not found] ` <20160828005636.GB19088@sasha-lappy>
     [not found]   ` <20160828075632.GA1852@p183.telecom.by>
     [not found]     ` <alpine.DEB.2.10.1608281152080.3321@hadrien>
2016-08-28 19:52       ` [Ksummit-discuss] checkkpatch (in)sanity ? Joe Perches
2016-08-28 20:35         ` Jiri Kosina
2016-08-28 21:24         ` Dennis Kaarsemaker
2016-08-28 21:57           ` Joe Perches

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).