Repository navigation
Update the Gix backend to GixPython 0.4.0 #2361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+245
−39
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5ddd5f6
fix(gix): use GixPython 0.4.0 for dates and tree listings
codex d9c5286
fix(gix): resolve textual reflog dates with Git
codex 86d0f88
fix(gix): use Git's dirty check for embedded repositories
codex 6f7a070
fix(gix): defer ambiguous zero tree modes to Git
codex 132d912
fix(gix): preserve Git's handling of negative identity dates
codex dc544f3
fix(gix): preserve stored commit identity text
codex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| GixPython==0.3.0 ; python_version >= "3.11" | ||
| GixPython==0.4.0 ; python_version >= "3.11" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/usr/bin/env bash | ||
| set -eu | ||
| git init -q -b main --object-format="$1" repo | ||
| { | ||
| printf '[submodule "module"]\npath = module\nurl = ../base\n' | ||
| case "$2" in | ||
| implicit-extra) printf 'x url = ../other\n' ;; | ||
| inline-extra) printf '[submodule "module"] x url = ../other\n' ;; | ||
| comment-in-key) printf 'br#anch = main\n' ;; | ||
| *) exit 1 ;; | ||
| esac | ||
| } >repo/.gitmodules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #!/usr/bin/env bash | ||
| set -eu | ||
| git init -q -b main --object-format="$1" repo | ||
| git -C repo commit -qm initial --allow-empty | ||
| blob=$(printf data | git -C repo hash-object -w --stdin) | ||
| commit=$(git -C repo rev-parse HEAD) | ||
| write_entry () { | ||
| printf '%s %s\0' "$1" "$2" | ||
| printf '%b' "$(printf %s "$3" | sed 's/../\\x&/g')" | ||
| } | ||
| { | ||
| write_entry 100700 executable "$blob" | ||
| case "$2" in | ||
| gitlink) write_entry 140000 module "$commit" ;; | ||
| missing-mode) write_entry '' module "$commit" ;; | ||
| zero-mode) write_entry 0 module "$commit" ;; | ||
| esac | ||
| write_entry 120777 symlink "$blob" | ||
| } | git -C repo hash-object --literally -w -t tree --stdin >tree-id |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.