In <1974592.ZQxCF2d4iu@django019> Reinhard <reinha...@schwarzrot-design.de> 
writes:


>How can I view the different variants of a file through git history?

List commits for a file example (using src/Makefile):

$ alias gitfile='git log --reverse  --pretty=format:"%h %ai %s" '
$ cd src
$ git status | head -1
On branch 2.8
$ gitfile Makefile |tail -10
4ed3f747a 2020-01-12 16:55:37 -0700 makefile permission restore
3a021b7d6 2020-01-12 15:45:29 -0700 pentakins kinematics #673
c0e21e717 2018-09-12 21:35:52 -0500 Makefile: error on implicit function 
declaration
e287041c0 2020-04-17 20:51:32 +0200 Merge branch 'master' of 
https://github.com/alkabal/linuxcnc into alkabal-master
83b8cdc1c 2020-04-21 08:50:28 -0500 update_ini: move into src/ so it gets 
#!-mangling done
e0612d889 2020-04-24 10:25:48 -0500 Makefile: Add cxx-flag macro
d36dcec77 2020-04-24 10:24:44 -0500 Makefile: Add -Wno-psabi to silence 
warnings on pi builds
49d9a9487 2020-04-24 10:23:21 -0500 Makefile: Specify gnu++11 or gnu++0x as 
language standard
9ff903664 2020-04-24 10:23:21 -0500 Makefile: Fix typo
a3a77353f 2020-04-29 13:24:01 +1000 add pmx485 to makefile0 t520:src


-- 
Dewey Garrett



_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to