You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 86d0f88
Browse filesBrowse the repository at this point in the historyBrowse files
fix(gix): use Git's dirty check for embedded repositories
Git 2.54's raw diff ignores a file that is only untracked inside
an embedded gitlink without a .gitmodules entry. GixPython 0.4.0
reports that checkout as dirty. The native submodule status identifies
embedded repositories, so use the existing Git path when one is
reported modified. Let Git apply the diff ignore policy.
The status tests verify untracked and tracked checkout changes for
both object formats, alongside the existing configured submodule
and worktree cases. All ten focused checks passed with Gix.
Agent-Model: unknown
Copy file name to clipboardExpand all lines: doc/gix-backend.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -410,7 +410,7 @@ and predate the current fallback; they do not establish native coverage.
410
410
| Selected `set_object` / reference deletion, `update_ref`| Native ref edits with GitPython's existing validation | Strict create/CAS, branch-target validation, symbolic aliases other than HEAD, symbolic detachment, active-branch HEAD log, unchanged targets and log-message cleanup; GIX-9/10/21/24 |
411
411
| Tree/commit `Diffable.diff`| Raw change records and unambiguous exact renames | Patches, paths, index/worktree/root diff, inexact/ambiguous renames; GIX-11 |
412
412
|`Commit.stats`| Native Myers line counts, binary counts, first-parent tree comparison | Diff attributes, other algorithms, gitlinks, non-ASCII or quoted filenames, large blobs; GIX-2/18 |
413
-
|`Repo.is_dirty`| Index/tree/worktree status, configured submodule checks and pathspecs | Custom/sparse indexes and non-root command directories |
413
+
|`Repo.is_dirty`| Index/tree/worktree status, configured submodule checks and pathspecs | Custom/sparse indexes, non-root command directories and embedded worktree changes (GIX-40)|
414
414
|`Repo.untracked_files`| Native directory walk | Extra status options and non-root command directories |
415
415
|`Repo.ignored`| Native excludes with tracked-file suppression | Symlink/submodule traversal, unsupported path normalization, and unavailable path metadata |
416
416
@@ -1013,6 +1013,7 @@ identify the historical fixture where needed.
1013
1013
| GIX-37 | Bug (open) | On macOS with Git 2.54.0 and GixPython 0.3.0 or 0.4.0, create a linear history `A <- B <- C` with `HEAD` at `C` and write `B`'s full SHA-1 followed by a space and newline to `.git/shallow`. `git rev-list --skip=1 HEAD` returns only `B` and stops at the shallow boundary. `Repository.rev_walk([repo.head_id()]).all()` instead raises a `gix.Error` when consumed: `gix-shallow` treats the trailing space as a 41st hexadecimal character. | Match Git's shallow-file parsing in Gitoxide. `Commit.iter_parents(first_parent=False)` keeps the existing CLI fallback in `_backend.history()` and returns `B` with or without `max_count=1`. An explicitly native `first_parent=True` walk still exposes the parsing mismatch, which also occurs through `Commit.iter_items(..., first_parent=True, skip=1)`. |
1014
1014
| GIX-38 | Bug (open) | With Git 2.54.0 and GixPython 0.4.0, the `commit.sh short-offset` fixture stores `1112591163 +020` in an identity. `git show -s --format=%ad --date=raw` reports `1112591163 +0020`, while `Commit.author()` reports an offset of zero. A separate probe with `+0299` preserves that spelling in Git but renders as `+0339` from the native offset in seconds. | Expose Git-compatible interpretation of short offsets and a way to preserve the stored offset spelling. `object_metadata()` accepts native dates when their formatted prefix matches the raw identity and otherwise keeps the existing CLI fallback. `test_deserialization_short_offset_matches_git` verifies the fallback returns the 20-minute offset. |
1015
1015
| GIX-39 | Bug (open) | On Git 2.54.0, `git rev-parse --verify HEAD@{never}` rejects the date. GixPython 0.4.0's `Repository.rev_parse_single()` returns the oldest commit. With reflog entries 80, 52, 49, 40, 3 and 0 hours old, Git also selects the 80-hour entry for `HEAD@{2days3hours}`, while Gix selects the 52-hour entry. | Match Git's approxidate grammar and invalid-date handling. `_check_revision_grammar()` retains CLI for textual selectors. `test_rev_parse_reflog_selectors` covers a rejected date, an accepted date and ordinary reflog selectors. |
1016
+
| GIX-40 | Bug (open) | With Git 2.54.0 and GixPython 0.4.0, `gix-backend.sh embedded_status_uses_git_diff_policy` tracks a gitlink without a `.gitmodules` entry. An untracked file in its checkout leaves `git diff --raw` empty, but native configured status reports a `SubmoduleModification` with `superproject_configuration` false. Both report changes to tracked files in the embedded checkout. The fixture covers SHA-1 and SHA-256. | Expose Git's diff ignore policy for embedded repositories. `Repo.is_dirty()` uses Git when native worktree status reports a modification in an embedded repository. |
1016
1017
1017
1018
GIX-14 also covers configured worktree symlink resolution. On macOS with
1018
1019
GixPython 0.3.0, CPython 3.12.14 and Git 2.54.0, set a submodule's
0 commit comments