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:08] – [Reachability] rpjdaygit_log [2019/03/13 14:52] (current) – [diff-filter] rpjday
Line 29: Line 29:
 $ git log next topic ^master $ git log next topic ^master
 $ git log b1 b2 b3 ... ^b8 ^b9 v1.0 v2.0 ... $ git log b1 b2 b3 ... ^b8 ^b9 v1.0 v2.0 ...
 +</code>
 +
 +Given this history:
 +
 +<code>
 +        o---o---o---o---o  master
 +                   \
 +              o---o---o---o---o  next
 +                           \
 +                            o---o---o  topic
 +</code>
 +
 +there is a special notation for the most common exclusion (//remember this one for rebasing//):
 +
 +<code>
 +$ git log next ^master
 +$ git log master..next
 +$ git log next..topic
 +</code>
 +
 +===== 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> </code>
  • git_log.1551953289.txt.gz
  • Last modified: 2019/03/07 10:08
  • by rpjday