Commit 9b4e938
authored
feat(daemon): add POST /git/checkout endpoint for switching to existing branches (#1164)
Split the checkout logic into two explicit APIs:
- POST /checkout-branch: creates and switches to a new branch (git checkout -b)
- POST /checkout: switches to an existing branch, returns 404 if not found
Made-with: Cursor1 parent c741b38 commit 9b4e938
1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
327 | 336 | | |
328 | 337 | | |
329 | 338 | | |
| |||
858 | 867 | | |
859 | 868 | | |
860 | 869 | | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
861 | 892 | | |
862 | 893 | | |
863 | 894 | | |
| |||
869 | 900 | | |
870 | 901 | | |
871 | 902 | | |
| 903 | + | |
872 | 904 | | |
873 | 905 | | |
874 | 906 | | |
| |||
0 commit comments