FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add --deepen flag to the fetch command by SandrineP · Pull Request #71 · QuantStack/git2cpp · GitHub

Repository navigation

Add --deepen flag to the fetch command - #71

Merged
JohanMabille merged 6 commits into
QuantStack:mainfrom
SandrineP:deepen_shallow
Jan 14, 2026
Merged

JohanMabille merged 6 commits into
QuantStack:mainfrom
SandrineP:deepen_shallow

Conversation

Copy link
Copy Markdown
Collaborator

Add --deepen flag to the fetch command

JohanMabille marked this pull request as ready for review January 13, 2026 10:30

Copy link
Copy Markdown
Member

I'm seeing different output for git and git2cpp here. For example using git:

$ git clone --depth 1 https://github.com/xtensor-stack/xtl.git
...
$ cd xtl
$ git log --oneline
f3ca44e (grafted, HEAD -> master, tag: 0.8.1, origin/master, origin/HEAD) Release 0.8.1
$ git fetch --deepen 1
...
$ git log --oneline
f3ca44e (grafted, HEAD -> master, tag: 0.8.1, origin/master, origin/HEAD) Release 0.8.1
3595599 (grafted) Merge pull request #285 from luxonis/master
$

whereas using git2cpp:

$ some_path/git2cpp clone --depth 1 https://github.com/xtensor-stack/xtl.git
...
$ cd xtl
$ git log --oneline
f3ca44e (grafted, HEAD -> master, tag: 0.8.1, origin/master, origin/HEAD) Release 0.8.1
$ some_path/git2cpp fetch --deepen 1
...
$ git log --oneline
f3ca44e (grafted, HEAD -> master, tag: 0.8.1, origin/master, origin/HEAD) Release 0.8.1
$

Copy link
Copy Markdown
Member

Maybe add an extra test using --deepen 0 to confirm that it does nothing.

ianthomas23 added the enhancement New feature or request label Jan 13, 2026
JohanMabille force-pushed the deepen_shallow branch 3 times, most recently from f0be003 to 14c0aae Compare January 13, 2026 16:46
JohanMabille force-pushed the deepen_shallow branch 4 times, most recently from d6f2f69 to cb507ed Compare January 13, 2026 17:32

ianthomas23 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

JohanMabille merged commit 6ed293a into QuantStack:main Jan 14, 2026
1 check passed
SandrineP deleted the deepen_shallow branch February 18, 2026 16:16
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
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.

3 participants


Back | FazBrowse Home | New Git URL