gittuf / gittuf

A security layer for Git repositories
https://gittuf.dev
Apache License 2.0
439 stars 28 forks source link

Git command compatibility #220 #440

Open Raghava-Gatadi opened 1 week ago

Raghava-Gatadi commented 1 week ago

Added Git command to the root command.

Raghava-Gatadi commented 1 week ago

Removed the previous gittuf git ... sub-command, and added a new top-level command gittuf-git ..., which redirects to the git binary.

patzielinski commented 1 week ago

This is a good start. Can you move the code for this binary into its own main.go file, similar to how was done in the transport PR here? After that. we should be able to start identifying commands that need gittuf to be invoked as well.

Raghava-Gatadi commented 1 week ago

I have moved the git binary from gittuf/main.go to its own main.go file

Raghava-Gatadi commented 1 week ago

I've implemented the requested modifications. Please review and verify if any further adjustments are needed.

patzielinski commented 1 week ago

Looks good - I think we're ready to decide on how to proceed.

cc @adityasaky

Raghava-Gatadi commented 5 hours ago

I've made changes to the /gittuf-git/push.go file to incorporate a rebase check. Please review the update and confirm if it functions as expected.