git log - How to use git to see changes to all files since their initial creation? -


i'm trying see edits i've made since initial commit.

this happens lot when import , control code vendor.

so workflow this:

  1. git add/commit original
  2. make edits
  3. git commit
  4. go 2

i'd see record of of my changes files since first created.

git log -p -- <file> doesn't quite work because file's initial creation shows 1 giant additional of lines. so:

commit 82abdc4cc52d70dcabdec4b987632f226a1e8bc4 author: greg bell <greg@> date:   fri aug 26 07:13:22 2016 +1000      initial import vendor  diff --git a/vendor/source.h b/vendor/source.h new file mode 100644 index 0000000..baf6d8a --- /dev/null +++ b/vendor/source.h @@ -0,0 +1,221 @@ +/* + * error codes returned blah. + * + * copyright (c) 1998-2000 blah blah + * + * program free software; can redistribute and/or modify + * under terms of gnu general public license published + * free software foundation; either version 3 of license, or + * (at option) later version. + * + * program distributed in hope useful, + * without warranty; without implied warranty of + * merchantability or fitness particular purpose.  see + * gnu general public license more details. + * + * should have received copy of gnu general public license along + * program; if not, visit http://fsf.org website. + */  +#define rerr_ok         0 +#define rerr_syntax     1       /* syntax or usage error */ . . (all 1250 lines shown) . 

this badly clutters output when i'm running log on entire dir instead of 1 file.

there no branches - perhaps critical initial mistake, though nasty have switch branches based on whether i'm bringing in new files or editing existing ones (then merge, etc.)

what think makes hard files may come in @ time, may added throughout git history, don't think can use .. or various revision syntaxes.

seems simple use case, reading of documentation git-log, , googling, hasn't yielded anything.

if understand correctly, want review modifications you've made, , ignore addition of new files. if indeed issue, can use --diff-filter switch limit type of changes want see, , send m (short modifications) argument:

$ git log --diff-filter=m -p -- <file> 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -