Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Can git log <file> follow log of its origins?

From: Max Pollard <hidden>
Date: 2016-06-15 22:44:08

Hi all,

If I do the following:

     $ git init
     $ echo "The brown fox is getting old" > a.txt
     $ git add a.txt
     $ git commit -m "Commit a.txt"

     $ cp a.txt b.txt
     $ git add b.txt
     $ git commit -m "Copy a.txt to b.txt"

     $ git log b.txt

I only see the log corresponding to the 2nd commit (v1.5.3.5).  Is it possible
to have the above command keep going and show the history of a.txt?  Or at
least somehow indicate that b.txt originated from a.txt?


Thanks,
MP



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help