Skip to content

Commit

Permalink
docs: add note of Git >= v2.31 requirement for next-status
Browse files Browse the repository at this point in the history
It relies on `rev-parse --path-format=relative`, which has been added in 2.31.

Thanks to @FeHoff for reporting!

Closes: #702
  • Loading branch information
mih committed May 21, 2024
1 parent d31ef78 commit 093575d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@
the "monorepo" recursion mode, and single-directory reporting options
of `iter_gitstatus()`. It is the first command to use `dataclass`
instances as result types, rather than the traditional dictionaries.
Git v2.31 or later is required.

- `SshUrlOperations` now supports non-standard SSH ports, non-default
user names, and custom identity file specifications.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ package and its commands.
- A `next-status` command that is A LOT faster than `status`, and offers
a `mono` recursion mode that shows modifications of nested dataset
hierarchies relative to the state of the root dataset.
Requires Git v2.31 (or later).

## Summary of additional features for DataLad extension development

Expand Down
5 changes: 5 additions & 0 deletions datalad_next/iter_collections/gitstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ def iter_gitstatus(
The ``name`` and ``prev_name`` attributes of an item are a ``str`` with
the corresponding (relative) path, as reported by Git
(in POSIX conventions).
.. note::
The implementation requires `git rev-parse --path-format=relative`
that was introduced with Git v2.31.
"""
path = Path(path)

Expand Down

0 comments on commit 093575d

Please sign in to comment.