On Monday, 29 November 2021 16:03:25 GMT Rich Freeman wrote:
> On Mon, Nov 29, 2021 at 5:39 AM tastytea <[email protected]> wrote:
> > If you want the history for a file, you need to specify the full path:
> > 
> > git log sys-devel/gcc/gcc-11.2.1_p20211127.ebuild
> 
> You can also point it at a directory and get changes for the entire
> directory.  I also suggest trying "git whatchanged" as an alternative
> to "git log."

I didn't know about whatchanged. I tried it like this and got 120k lines of 
output:

# (cd /var/db/repos/gentoo/sys-devel/gcc && git whatchanged)

I've always found git counter-intuitive and I've resisted trying to understand 
it, so far. Maybe I should make a little more effort.

> I'm guessing you could get git log to display the same
> info but I find whatchanged to be more useful, at least for
> directories.  There wouldn't be much point in running it on a single
> file since the main benefit is showing what files changed in each
> commit.
> 
> Keep in mind that git knows nothing about gentoo package atoms/syntax.
> It just sees a directory tree and files...

Yes, I did know that.

-- 
Regards,
Peter.




Reply via email to