Jujutsu unfriendly submit
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 55/100
Direzione di ricerca
Read internal/commands/submit.go around lines 104-111 and trace the branch detection used by submit. Compare the current git rev-parse command with the proposed git for-each-ref command. Done means submit accepts a Jujutsu detached-HEAD workspace when HEAD points to the master branch, without adding dependencies.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
If you're using Jujutsu, you cannot submit despite the HEAD being on the correct commit (ie. the tip of the master branch). Jujutsu leaves you in a detached HEAD state by default. You can switch the branch manually, and then submit works as expected.
A slight change to the branch detection command (adds no dependencies, and still only relies on git) will allow Jujutsu users to seamlessly use the codecrafters CLI.
I'm happy to make the change myself, but I wanted to make sure it would be accepted.
The issue stems from this code: https://github.com/codecrafters-io/cli/blob/b460df357ffbfb2fd37c9057b0bd5cad066fdc83/internal/commands/submit.go#L104-L111
This currently runs something like
git -C . rev-parse --abbrev-ref HEAD
and the following would make Jujutsu work as expected
git for-each-ref --format=%(refname:short) --points-at HEAD refs/heads
- Lingua principale
- Go
- Stelle
- 29
- Fork
- 19
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di codecrafters-io/cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
codecrafters-io/cli#83 · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
codecrafters-io/cli#87 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
codecrafters-io/cli#45 · 1 reazione ·
Tutte le issue di codecrafters-io/cli
Issue simili
-
ai-generated
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
SiaFoundation/indexd#1116 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
wakatime/wakatime-cli#1585 ·