Repository navigation
Specify generation number version by config - #886
derrickstolee wants to merge 2 commits into
Conversation
The write_commit_graph() method uses 'the_repository' in a few places. A new need for a repository pointer is coming in the following change, so group these instances into a local variable 'r' that could eventually become part of the method signature, if so desired. Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
We have two established generation number versions: 1: topological levels 2: corrected commit dates The corrected commit dates are enabled by default, but they also write extra data in the GDAT and GDOV chunks. Services that host Git data might want to have more control over when this feature rolls out than just updating the Git binaries. Add a new "commitGraph.generationVersion" config option that specifies the intended generation number version. If this value is less than 2, then the GDAT chunk is never written _or read_ from an existing file. This can replace our use of the GIT_TEST_COMMIT_GRAPH_NO_GDAT environment variable in the test suite. Remove it. Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
2fcbcfd to
8eca11e
Compare
|
/submit |
|
Submitted as pull.886.git.1614277183.gitgitgadget@gmail.com To fetch this version into To fetch this version to local tag |
|
This branch is now known as |
|
This patch series was integrated into seen via git@e5d12ad. |
|
This patch series was integrated into seen via git@35423f6. |
|
This patch series was integrated into seen via git@f15763d. |
|
This patch series was integrated into seen via git@b0b878c. |
|
This patch series was integrated into next via git@926537e. |
|
This patch series was integrated into seen via git@3c9891f. |
|
This patch series was integrated into seen via git@88fabf7. |
|
This patch series was integrated into seen via git@cd24117. |
|
This patch series was integrated into seen via git@1fb00d3. |
Add a stub pipeline for releases using Azure Pipelines. The pipeline runs on Microsoft internal images/runners across: * Windows x64 * Windows ARM64 * macOS * Ubuntu x64 * Ubuntu ARM64 At the start of a run there is a prerequisite stage and pre-build validation. Today this does nothing, and should be updated to: * validate the current commit is tagged (annotated), and * capture the Git version, tag name and SHA. Artifacts are uploaded from the build stage, and downloaded into the release stage later for uploading to a draft GitHub release. ESRP signing to be added later.
This is based on ds/chunked-file-api.
Generation number v2 (corrected commit dates) was introduced by ak/corrected-commit-date. The new data could be opted-out only using the
GIT_TEST_COMMIT_GRAPH_NO_GDATenvironment variable.As this feature gets deployed more widely, servers in particular might want more control over when this format is used. Add a config option instead.
Thanks,
-Stolee
Cc: me@ttaylorr.com
Cc: abhishekkumar8222@gmail.com