`git init` in `root`. Idempotent — re-init on an existing repo is a no-op.
(root: &Path)
| 102 | |
| 103 | /// `git init` in `root`. Idempotent — re-init on an existing repo is a no-op. |
| 104 | pub fn init(root: &Path) -> Result<()> { |
| 105 | let _ = open_or_init(root)?; |
| 106 | Ok(()) |
| 107 | } |
| 108 | |
| 109 | /// Stage exactly the listed trace-relative paths and commit. Replaces the |
| 110 | /// `add -A` sweep with an explicit declaration of what this commit contains. |
searching dependent graphs…