Add ability to inspect specific commits and diffs via command line arguments
- Lenguaje dominante
- Rust
- Estrellas
- 22.5k
- Forks
- 773
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**Is your feature request related to a problem? Please describe.**
It should be easily possible to inspect the changes by a given git commit/patch or range of commits.
**Describe the solution you'd like**
There should be command line arguments to show the git commits.
*Examples:*
```shell
# inspect a specific git commit
gitui --commit COMMITHASH
# inspect a range of commits
gitui --commit REV1..REV2
# inspect a range of commits and skip the first one
gitui --commit REV1^..REV2
# inspect from a given commit to HEAD
gitui --commit REV1..HEAD
gitui --commit REV1..
# inspect a git patch file
gitui --inspect SOMEFILENAME.patch
```
**Describe alternatives you've considered**
There should be a method via the CLI UI for selecting a range of commits or a patch file for inspection.
**Additional context**
- See [Git Revision](https://git-scm.com/docs/gitrevisions) on how a range of git commits can be specified
- See [Git Diff and Patch](https://www.freecodecamp.org/news/git-diff-and-patch/) and [Git Format-Patch](https://git-scm.com/docs/git-format-patch) on details of git patch files
Guía de contribución
Línea de trabajo
Comienza localizando el análisis de argumentos de la línea de comandos de gitui y los puntos de entrada existentes para inspeccionar commits o diffs. Revisa cómo deberían asignarse los ejemplos que usan --commit y --inspect a rangos de revisiones de Git y archivos de parches. Se considera completado cuando los argumentos solicitados funcionan para los casos indicados de commit, rango, HEAD y archivo de parche.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- git, rust
- Área
- cli, devtools
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100