Git hooks for metadata storage/retrieval

后端 未结 2 1780
遥遥无期
遥遥无期 2020-12-09 11:40

One of git\'s unavoidable quirks is its inability to store and retrieve metadata about a file. For example, on the mac, labels are stored with \"extended attributes\" (acces

相关标签:
2条回答
  • 2020-12-09 11:52

    The gibak tool uses pre-commit and post-checkout to let its ometastore tool save/restore metadata (optionally including xattrs).

    You do not want post-receive. It is run on the remote end of pushes. It runs for bare repositories, so it has no business trying to update any files from the contents of a pushed commit. Do it in post-checkout where you know you will have a working tree available.

    0 讨论(0)
  • 2020-12-09 11:59

    metastore is able to save and restore file metadata, storing it in a separate file (which you can include in your commits)

    0 讨论(0)
提交回复
热议问题