How to change image tracking with Git? -


in git repository i've got quite lot of images (changing other vcs git out of question). part of images, duplicates different size, these created imagemagick. time time, have regenerate images, ok, however, though image didn't change [size same etc] git marks file modified. assume because of last modified dates, right? there chance, change way git tracks changes of images? there anyway add imagemagick's compare functionality?

thanks, krystian

edited

i wrong, git avoid checking file content , prefer using faster methods described in related post: how git detect file has been modified?

if files not modified, i'm not sure if understand well, maybe using git update-index --assume-unchanged might help.

however not mean files not modified when re-run generation step, , should check git diff or follow advices of post how can diff binary files in git?

but think problem not lie git , better review work-flow. can see 2 options:

  1. either not re-generate images if it's not needed , doing avoid problem
  2. or not track binary files in git , generate them on target

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -