forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.010.7 MiBeb7e617Tahinli1 month ago137 commits
| 1 | //! Branch operations used by the branches page: ahead/behind counts, creating and deleting. |
| 2 | |
| 3 | use Path; |
| 4 | |
| 5 | use crateGitEnv; |
| 6 | use crate; |
| 7 | use crate; |
| 8 | use crate; |
| 9 | |
| 10 | /// `(ahead, behind)` of `tip` relative to `base`: commits only in `tip`, and commits only in `base`. |
| 11 | pub async |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | /// Creates `refs/heads/<name>` at `oid`. Fails when the branch exists already. |
| 39 | pub async |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | /// Deletes `refs/heads/<name>` if it still points at `oid`. |
| 52 | pub async |
| 53 | |
| 54 |