Skip to content

Add support for path arguments via __ parameter#2

Merged
jph00 merged 2 commits intomainfrom
paths
Feb 24, 2026
Merged

Add support for path arguments via __ parameter#2
jph00 merged 2 commits intomainfrom
paths

Conversation

@ncoop57
Copy link
Contributor

@ncoop57 ncoop57 commented Feb 23, 2026

Adds ability to pass path arguments after the -- separator in git
commands.

Usage:

g.log('--oneline', __=['file1.py', 'file2.py'])
# → git log --oneline -- file1.py file2.py

This enables filtering git commands by specific files/paths using the standard git pathspec separator.

@ncoop57 ncoop57 added the enhancement New feature or request label Feb 23, 2026
@ncoop57 ncoop57 requested a review from jph00 February 23, 2026 20:15
@jph00
Copy link
Contributor

jph00 commented Feb 24, 2026

Smart! Can you add something to index.ipynb mentioning that too?

@jph00 jph00 merged commit 709a7f0 into main Feb 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants