Skip to content

Implemented git rm#95

Merged
JohanMabille merged 2 commits intoQuantStack:mainfrom
JohanMabille:rm_command
Feb 10, 2026
Merged

Implemented git rm#95
JohanMabille merged 2 commits intoQuantStack:mainfrom
JohanMabille:rm_command

Conversation

@JohanMabille
Copy link
Member

No description provided.

if (!repo.does_track(path))
{
std::string msg = "fatal: pathsspec '" + path + "'is not tracked";
throw git_exception(msg, 128);
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can use the new git2cpp_error_code here.

# Check git status - should show nothing staged
status_cmd = [git2cpp_path, "status", "--long"]
p_status = subprocess.run(status_cmd, capture_output=True, cwd=xtl_path, text=True)
assert p_status.returncode == 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't check that nothing was staged.

@JohanMabille JohanMabille merged commit 4bd9b8e into QuantStack:main Feb 10, 2026
2 checks passed
@JohanMabille JohanMabille deleted the rm_command branch February 10, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants