replicating index.add_all with gix #1031
-
to do say
but I'm a bit confused on how to do the same with gix due to a lack of examples. am i missing something obvious? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Currently there is no high-level API to implement As a general rule of thumb, Please also note that technically, you can implement a With this said, it's |
Beta Was this translation helpful? Give feedback.
Currently there is no high-level API to implement
git add
similarly to howgit add
would, or how one would do it withgit2
.As a general rule of thumb,
gix
(the crate) is likely to be able to do what you are looking for ifgix
(the CLI) can do it. Using the CLI for discovery might have advantages as it follows the terminology of thegit
CLI more closely.Please also note that technically, you can implement a
git add
withgix
today, but it will be very low-level and cumbersome. Further, it's not yet possible to easily create a tree from an index, which would be needed for a commit.With this said, it's
not yet on the roadmap either ason the roadmap ascargo
doesn't need that functionalityc…