Skip to content

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

Merged
merged 11 commits into from
Sep 14, 2020
58 changes: 58 additions & 0 deletions .overrides/git_diff.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
: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

La instalación de `podiff` mediante `pip` no se encuentra totalmente funcional, pero los usuarios de macOS
podrán continuar con estas instrucciones.

Primero debemos instalar brew. Si no lo tienes instalado puedes seguir el instructivo de instalación Brew_.

.. 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)"

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

Para las distribuciones de Linux se pueden utilizar algunas herramientas, como por ejemplo podiff_ y
potools_, que son compatibles con Python 2. Se puede utilizar `pip` para instalarlas.

.. code-block:: bash

pip install podiff
# o
pip install potools

.. _Brew: https://docs.brew.sh/Installation
.. _podiff: https://pypi.org/project/podiff/
.. _potools: https://pypi.org/project/potools/