|
|
|
|
|
by rbehrends
8 days ago
|
|
I found that annoying, too, until they introduced the snapshot.auto-track configuration option. Here's an example for a basic Rust project: [snapshot]
auto-track = """
root-glob:"{src,tests}/**/*.rs" |
root-glob:"Cargo.*" |
root-file:"README.md"
"""
I set it to `snapshot.auto-track = "none()"` in the global config so that it is turned off by default and then selectively adjust it for a project.You can also leave it as `none()` and then manually add files as before. Note also that this has nothing to do with the staging area, but with selecting which files to add to a repo, which other VCSes can do just fine without having a staging area. In fact, selective auto-track plus not having to explicitly stage changes makes it less of a risk that you forget to add something. |
|