Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git_log [2019/03/07 10:17] – [Reachability] rpjdaygit_log [2019/03/13 14:52] (current) – [diff-filter] rpjday
Line 41: Line 41:
 </code> </code>
  
-there is a special notation for the most common exclusion (remember this one for rebasing):+there is a special notation for the most common exclusion (//remember this one for rebasing//):
  
 <code> <code>
 $ git log next ^master $ git log next ^master
 $ git log master..next $ git log master..next
 +$ git log next..topic
 </code> </code>
  
 ===== Why is "git log" so slow? ===== ===== Why is "git log" so slow? =====
 +
 +If you want to see the log of all changes to a single file:
 +
 +<code>
 +$ git log --oneline -- scripts/dtc/Makefile
 +</code>
 +
 +it will take a while as Git does //not// store per-file changes with the file.
 +
 +===== diff-filter =====
 +
 +Show only commits that deleted files:
 +
 +<code>
 +$ git log --diff-filter=D --summary
 +</code>
  • git_log.1551953838.txt.gz
  • Last modified: 2019/03/07 10:17
  • by rpjday