$ git add somefile.txt
$ TREE_HASH_PREDICTION=$(???)
$ git commit -m "some message"
$ TREE_HASH=$(git rev-parse HEAD^{tree})
assuming commit doesn't trigger any hooks that add further files or remove some from the staging area, what command can I use in ??? so that TREE_HASH_PREDICTION will match TREE_HASH?
Note: I'm NOT asking about the commit hash, but about the tree hash contained in the commit