0

I need to read all files for a GIT branch (approx 10000 xml files) and then determine which has changed (since they have a Generated timestamp inside each file - I need to remove it first, then I'm able to identify if the file has changed or not compared to the previous release). - I wonder if there is GIT API enabling external scripts to read files as "data stream" - i.e. without having them to save as files first ?

  • You can ask git to provide any object with `git cat-file -p`. `git cat-file -p some-object-id` or `git cat-file -p some-branch:some/file/path.xml` or `git cat-file -p HEAD:path/to/file.xml` – eftshift0 Jan 23 '22 at 11:52
  • Also consider the various --batch options with `git cat-file`. – torek Jan 23 '22 at 21:36

0 Answers0