Copied hash ranges are backwards
- Lingua principale
- Rust
- Stelle
- 22.5k
- Fork
- 773
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**Describe the bug**
I've been using the hash range copy feature introduced in #1288 to do a lot of cherry-picking, a large majority of which are consecutive ranges. However I can't use the range as-is and would have to manually reverse it myself, since marks are sorted by latest first. Thank you!
EDIT(2024/06/28): I've noticed that even for non-consecutive ranges the order is reversed. If the order of marks is not depended on anything else in gitui, I think it's desirable to reverse it for ease of use.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to the Log screen
2. Mark a consecutive range of commits and copy to clipboard
3. Try to `git cherry-pick` with the copied range
4. `error: empty commit set passed`
**Expected behavior**
It would be more convenient for hash ranges to be sorted from oldest to latest.
**Screenshots**
N/A
**Context**
- OS/Distro + Version: Pop_OS 22.04
- GitUI Version: nightly 2024-05-19
- Rust version: 1.78.0
**Additional context**
N/A
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia nel percorso di copia degli intervalli di hash della schermata Log e riproduci il problema contrassegnando intervalli di commit consecutivi e non consecutivi. Usa gli intervalli copiati con git cherry-pick e verifica che entrambi siano ordinati dal più vecchio al più recente e non producano più un insieme di commit vuoto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- git, rust
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100