Commit 4731afb
committed
[WIP][GitRepository] Implement #git_transaction
All actions git write actions implement `with_worktree`, so this is a
simple place to implement `git_transaction` and apply it safely.
TODO: `GitRepository#worktree` probably doesn't need `#git_transaction`
since it should only be called from `#with_worktree`, but want to
confirm with others. This commit will be rebased once that is
determined.1 parent 436daa2 commit 4731afb
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | | - | |
76 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
152 | | - | |
153 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
154 | 161 | | |
155 | 162 | | |
156 | 163 | | |
| |||
0 commit comments