Implement ResetCommand.ResetType.MERGE
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 32/100
Direção de pesquisa
Start from the MERGE stub in org.eclipse.jgit.api.ResetCommand.ResetType and the ResetCommand class that handles the other reset types. Read the git reset documentation quoted in the issue, which defines the behaviour: update the working tree only for files that differ between the target commit and HEAD, keep unstaged changes, and abort when such a file has unstaged changes. Done means the mode matches git reset --merge for unmerged index entries, with tests covering the abort case.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Description
JGit currently lacks support for git reset --merge (stubs for this have already been added in org.eclipse.jgit.api.ResetCommand.ResetType, but were never implemented).
Motivation
The purpose of this reset mode is to recover cleanly from merge conflicts and is a prerequisite for supporting multi-commit git cherry-pick --continue/--skip/--abort in JGit (work for this was already started in https://github.com/eclipse-jgit/jgit/issues/301 which adds the support for writing the sequencer state for CherryPickCommand/RevertCommand)
Additional context
The git documentation describes this merge mode as follows:
Reset the index and update the files in the working tree that are different between
<commit>andHEAD, but keep those which are different between the index and working tree (i.e. which have changes which have not been added). Mainly exists to reset unmerged index entries, like those left behind bygit am -3orgit switch -min certain situations. If a file that is different between<commit>and the index has unstaged changes, reset is aborted.
- Linguagem predominante
- Java
- Estrelas
- 427
- Forks
- 116
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de eclipse-jgit/jgit
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
eclipse-jgit/jgit#329 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
eclipse-jgit/jgit#327 ·
-
Repository.create(boolean bare) should provide a no-arg overload that uses isBare()Talvez livre de novo @hardikyadav12 assumiu há 77 dias e não há nenhum pull request aberto. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
eclipse-jgit/jgit#297 · 1 comentário ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
eclipse-jgit/jgit#293 · 2 comentários ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
eclipse-jgit/jgit#288 ·
Todas as issues de eclipse-jgit/jgit
Issues semelhantes
-
? - Needs Triage bot_watch bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
NVIDIA/cudf-spark-jni#5594 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
Upgrade solr to 9.11.0Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
DataONEorg/dataone-indexer#390 ·