<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/commit-graph.c, branch v2.19.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.19.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.19.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-08-21T17:22:51Z</updated>
<entry>
<title>commit-graph: not compatible with replace objects</title>
<updated>2018-08-21T17:22:51Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-08-20T18:24:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d6538246d3d4edbfbc9b0af6a2aa38552d35f7f1'/>
<id>urn:sha1:d6538246d3d4edbfbc9b0af6a2aa38552d35f7f1</id>
<content type='text'>
Create new method commit_graph_compatible(r) to check if a given
repository r is compatible with the commit-graph feature. Fill the
method with a check to see if replace-objects exist. Test this
interaction succeeds, including ignoring an existing commit-graph and
failing to write a new commit-graph. However, we do ensure that
we write a new commit-graph by setting read_replace_refs to 0, thereby
ignoring the replace refs.

Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-graph: add free_commit_graph</title>
<updated>2018-07-17T22:47:48Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2018-07-11T22:42:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c3756d5b7fc6e163032296aa6c10fad2589273dc'/>
<id>urn:sha1:c3756d5b7fc6e163032296aa6c10fad2589273dc</id>
<content type='text'>
Signed-off-by: Jonathan Tan &lt;jonathantanmy@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-graph: add '--reachable' option</title>
<updated>2018-06-27T17:29:10Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-06-27T13:24:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=59fb87701ff68eb114e54ce6834e91c4ae8f60a7'/>
<id>urn:sha1:59fb87701ff68eb114e54ce6834e91c4ae8f60a7</id>
<content type='text'>
When writing commit-graph files, it can be convenient to ask for all
reachable commits (starting at the ref set) in the resulting file. This
is particularly helpful when writing to stdin is complicated, such as a
future integration with 'git gc'.

Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-graph: use string-list API for input</title>
<updated>2018-06-27T17:29:10Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-06-27T13:24:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d88b14b3fd691fc71c3cea5bc5bde9dd10b5e86c'/>
<id>urn:sha1:d88b14b3fd691fc71c3cea5bc5bde9dd10b5e86c</id>
<content type='text'>
Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-graph: add 'verify' subcommand</title>
<updated>2018-06-27T17:27:05Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-06-27T13:24:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=283e68c72f49e6cfbae53cb5547d5b399ed25d1a'/>
<id>urn:sha1:283e68c72f49e6cfbae53cb5547d5b399ed25d1a</id>
<content type='text'>
If the commit-graph file becomes corrupt, we need a way to verify
that its contents match the object database. In the manner of
'git fsck' we will implement a 'git commit-graph verify' subcommand
to report all issues with the file.

Add the 'verify' subcommand to the 'commit-graph' builtin and its
documentation. The subcommand is currently a no-op except for
loading the commit-graph into memory, which may trigger run-time
errors that would be caught by normal use. Add a simple test that
ensures the command returns a zero error code.

If no commit-graph file exists, this is an acceptable state. Do
not report any errors.

Helped-by: Ramsay Jones &lt;ramsay@ramsayjones.plus.com&gt;
Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-graph: UNLEAK before die()</title>
<updated>2018-06-27T17:27:04Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-06-27T13:24:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=883e5c7fe90aa2ef9f6efd1ef476ca281d09e79b'/>
<id>urn:sha1:883e5c7fe90aa2ef9f6efd1ef476ca281d09e79b</id>
<content type='text'>
Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-graph: implement "--append" option</title>
<updated>2018-04-11T01:43:02Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-04-10T12:56:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7547b95b4fbb8591726b1d9381c176cc27fc6aea'/>
<id>urn:sha1:7547b95b4fbb8591726b1d9381c176cc27fc6aea</id>
<content type='text'>
Teach git-commit-graph to add all commits from the existing
commit-graph file to the file about to be written. This should be
used when adding new commits without performing garbage collection.

Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-graph: build graph from starting commits</title>
<updated>2018-04-11T01:43:02Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-04-10T12:56:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3d5df01b5e42416a59e857135e932bbdd8cc3ba0'/>
<id>urn:sha1:3d5df01b5e42416a59e857135e932bbdd8cc3ba0</id>
<content type='text'>
Teach git-commit-graph to read commits from stdin when the
--stdin-commits flag is specified. Commits reachable from these
commits are added to the graph. This is a much faster way to construct
the graph than inspecting all packed objects, but is restricted to
known tips.

For the Linux repository, 700,000+ commits were added to the graph
file starting from 'master' in 7-9 seconds, depending on the number
of packfiles in the repo (1, 24, or 120).

Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-graph: read only from specific pack-indexes</title>
<updated>2018-04-11T01:43:02Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-04-10T12:56:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=049d51a2bb9a03d2f2c2cce1ae41e57dbbf42244'/>
<id>urn:sha1:049d51a2bb9a03d2f2c2cce1ae41e57dbbf42244</id>
<content type='text'>
Teach git-commit-graph to inspect the objects only in a certain list
of pack-indexes within the given pack directory. This allows updating
the commit graph iteratively.

Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-graph: implement git commit-graph read</title>
<updated>2018-04-11T01:43:01Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-04-10T12:56:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2a2e32bdc5a80221981939e77643cec3462b4793'/>
<id>urn:sha1:2a2e32bdc5a80221981939e77643cec3462b4793</id>
<content type='text'>
Teach git-commit-graph to read commit graph files and summarize their contents.

Use the read subcommand to verify the contents of a commit graph file in the
tests.

Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
