summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
Commit message (Collapse)AuthorAgeFilesLines
* SQUASH??? sparse fixesds/commit-graphJunio C Hamano2018-03-141-1/+1
|
* commit-graph: implement "--additive" optionDerrick Stolee2018-03-141-3/+7
| | | | | | | | | 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 <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* commit-graph: build graph from starting commitsDerrick Stolee2018-03-141-6/+21
| | | | | | | | | | | | | | | 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 <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* commit-graph: read only from specific pack-indexesDerrick Stolee2018-03-141-3/+30
| | | | | | | | | 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 <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* commit-graph: implement git commit-graph readDerrick Stolee2018-03-141-0/+56
| | | | | | | | | | 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 <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* commit-graph: implement 'git-commit-graph write'Derrick Stolee2018-03-141-0/+33
| | | | | | | | Teach git-commit-graph to write graph files. Create new test script to verify this command succeeds without failure. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* commit-graph: create git-commit-graph builtinDerrick Stolee2018-03-141-0/+36
Teach git the 'commit-graph' builtin that will be used for writing and reading packed graph files. The current implementation is mostly empty, except for an '--object-dir' option. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>