<feed xmlns='http://www.w3.org/2005/Atom'>
<title>metastore/examples/hooks/pre-commit, branch format1-3</title>
<subtitle>File metadata backup/comparison/restoration tool</subtitle>
<link rel='alternate' type='text/html' href='https://spragg-ssl.co.uk/projects/cgit.cgi/metastore/'/>
<entry>
<title>Use format 1 without mtime in the example hooks</title>
<updated>2022-05-24T09:12:33+00:00</updated>
<author>
<name>Adam Spragg</name>
<email>adam@spra.gg</email>
</author>
<published>2022-05-24T09:00:11+00:00</published>
<link rel='alternate' type='text/html' href='https://spragg-ssl.co.uk/projects/cgit.cgi/metastore/commit/?id=dfb72c27037915262f6dcbd1d0017cf4136316da'/>
<id>dfb72c27037915262f6dcbd1d0017cf4136316da</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make example hook shell scripts executable</title>
<updated>2022-05-24T09:12:33+00:00</updated>
<author>
<name>Adam Spragg</name>
<email>adam@spra.gg</email>
</author>
<published>2022-05-23T15:50:24+00:00</published>
<link rel='alternate' type='text/html' href='https://spragg-ssl.co.uk/projects/cgit.cgi/metastore/commit/?id=7e80a15a8ce294d99ad015e672a85727ede76b15'/>
<id>7e80a15a8ce294d99ad015e672a85727ede76b15</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Abort commits during conflicts if differences exist</title>
<updated>2022-05-24T09:12:33+00:00</updated>
<author>
<name>Adam Spragg</name>
<email>adam@spra.gg</email>
</author>
<published>2022-05-23T15:23:50+00:00</published>
<link rel='alternate' type='text/html' href='https://spragg-ssl.co.uk/projects/cgit.cgi/metastore/commit/?id=0ca5825e790fd9ab034dd8ab7511732e1905000c'/>
<id>0ca5825e790fd9ab034dd8ab7511732e1905000c</id>
<content type='text'>
If the user is running `git commit` to resolve a conflict, it's
dangerous to just save the metadata from the filesystem. It's possible
that they just fixed a conflict in the metadata file, but didn't update
the on-disk metadata to match.

(I know it's possible, because I did this!)

Our normal mode of operation, of just saving the metadata during a
commit to match whatever's on-disk, would wipe out their careful
conflict resolution! (On the other hand, just overwriting the on-disk
metadata might not be the best idea either.)

But the point of a conflict is that the changes between two different
branches *can't* be resolved automatically, and requires manual
intervention. Given that situation, asking them to resolve the
difference manually seems to be the most obvious option.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the user is running `git commit` to resolve a conflict, it's
dangerous to just save the metadata from the filesystem. It's possible
that they just fixed a conflict in the metadata file, but didn't update
the on-disk metadata to match.

(I know it's possible, because I did this!)

Our normal mode of operation, of just saving the metadata during a
commit to match whatever's on-disk, would wipe out their careful
conflict resolution! (On the other hand, just overwriting the on-disk
metadata might not be the best idea either.)

But the point of a conflict is that the changes between two different
branches *can't* be resolved automatically, and requires manual
intervention. Given that situation, asking them to resolve the
difference manually seems to be the most obvious option.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/hooks/pre-commit: Improve handling of first metastore commit.</title>
<updated>2016-01-19T22:32:49+00:00</updated>
<author>
<name>Przemyslaw Pawelczyk</name>
<email>przemoc@gmail.com</email>
</author>
<published>2016-01-19T22:32:49+00:00</published>
<link rel='alternate' type='text/html' href='https://spragg-ssl.co.uk/projects/cgit.cgi/metastore/commit/?id=95921e7ad884f4b7c19ce6f716e452f41dbf18c9'/>
<id>95921e7ad884f4b7c19ce6f716e452f41dbf18c9</id>
<content type='text'>
Previously after first metastore commit, metastore -c would show

    ./.metadata:	added

which was misleading.

Now metastore -s is run twice if .metadata is not in repository yet.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously after first metastore commit, metastore -c would show

    ./.metadata:	added

which was misleading.

Now metastore -s is run twice if .metadata is not in repository yet.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/hooks/pre-commit: Add warning in comments re aborted commit.</title>
<updated>2016-01-19T20:23:16+00:00</updated>
<author>
<name>Przemyslaw Pawelczyk</name>
<email>przemoc@gmail.com</email>
</author>
<published>2016-01-19T20:23:16+00:00</published>
<link rel='alternate' type='text/html' href='https://spragg-ssl.co.uk/projects/cgit.cgi/metastore/commit/?id=7f000a2d7368367f8c6d3bf7c15e7ad7b0782952'/>
<id>7f000a2d7368367f8c6d3bf7c15e7ad7b0782952</id>
<content type='text'>
Fixes #26.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #26.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: Move hook scripts to their own subdirectory.</title>
<updated>2016-01-19T19:42:22+00:00</updated>
<author>
<name>Przemyslaw Pawelczyk</name>
<email>przemoc@gmail.com</email>
</author>
<published>2016-01-19T19:42:22+00:00</published>
<link rel='alternate' type='text/html' href='https://spragg-ssl.co.uk/projects/cgit.cgi/metastore/commit/?id=d119c8d1f5b18c6ee9c5efa90615427083875e00'/>
<id>d119c8d1f5b18c6ee9c5efa90615427083875e00</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
