-
Notifications
You must be signed in to change notification settings - Fork 397
Agrego página git diff #372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
6bed747
cf504b6
9279480
70135fa
f8747f7
847233f
47d03f8
33aee84
a48986b
ecb65b0
5f057b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
:orphan: | ||
|
||
========================= | ||
Simplificar el `git diff` | ||
========================= | ||
|
||
El comando `git diff` tiene datos que pueden llegar a ser inútiles como por ejemplo: | ||
|
||
.. code-block:: diff | ||
|
||
-#: ../Doc/library/signal.rst:406 | ||
+#: ../Doc/library/signal.rst:408 | ||
|
||
Para ellos debemos instalar brew. Si no lo tienes instalado puedes seguir el instructivo de instalación Brew_. | ||
eamanu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.. tabs:: | ||
|
||
.. tab:: Mac | ||
|
||
Para instalar brew en Mac ejecutar el siguiente comando:: | ||
|
||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | ||
|
||
.. tab:: Linux | ||
|
||
Para instalar brew en Linux ejecutar | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yo para Linux no diría de usar brew. Explicaría que hay que instalar podiff. Estamos hablando de la librería de Python podiff? En ese caso probablemente explicaría como instalarlo en el mismo virtualenv que tenemos en el Makefile o incluso lo añadiría allí. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oops yo instalé brew en Linux :O. No sé si es el mismo módulo el podiff. Dejame que lo pruebe. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mejor dejar un comentario de instalarlo con el gestor de paquetes, y dar uno o dos ejemplos y ya. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sí. No recomendemos usar There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cmaureir @humitos @raulcd Retomé este PR, y estuve viendo algunas opciones para no usar brew. Qué opinan cómo continuar? [0] https://pypi.org/project/podiff/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mejor no darle tanta vuelta, el workflow general es traducir con There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cmaureir que tal quedó? |
||
|
||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | ||
|
||
Luego ejecutar los siguientes comandos:: | ||
|
||
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv) | ||
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) | ||
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile | ||
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile | ||
|
||
Ten en cuenta que si usas un sistema Debian/Ubunut se utiliza el archivo `~/.profile` mientras que | ||
para sistemas CentOS/Fedora/RedHat se utiliza `~/.bash_profile` | ||
|
||
Una vez instalado brew, hay que instalar podiff, para ellos ejectar el siguiente comando: | ||
|
||
.. code-block:: bash | ||
|
||
brew install podiff | ||
|
||
Luego abrir el archivo de configuración del respositorio local y escribir al final: | ||
|
||
.. code-block:: bash | ||
|
||
[diff "podiff"] | ||
command = $(brew --prefix)/bin/podiff -D--minimal | ||
|
||
Luego, si no existiese el archivo `.gitatributes` en la carpeta dónde se encuentran los | ||
archivos .po con los que se van a trabajar, crealo, y luego, agregar la siguiente línea | ||
|
||
.. code-block:: bash | ||
|
||
*.po diff=podiff | ||
|
||
.. _Brew: https://docs.brew.sh/Installation |
Uh oh!
There was an error while loading. Please reload this page.