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
Prev Previous commit
Next Next commit
add tab according to Mac and linux
  • Loading branch information
eamanu committed Jun 6, 2020
commit f8747f70470df96eab821d5e3c1faa2c23dc5aed
26 changes: 25 additions & 1 deletion .overrides/git_diff.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,35 @@ El comando `git diff` tiene datos que pueden llegar a ser inútiles como por eje

Para ellos 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)"

.. tab:: Linux

Para instalar brew en Linux ejecutar
Copy link
Collaborator

Choose a reason for hiding this comment

The 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í.
pip install podiff
Siendo usuario de Linux decirme que tengo que instalar brew me parece rarísimo. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

Copy link
Collaborator

Choose a reason for hiding this comment

The 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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sí. No recomendemos usar brew en Linux.

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.
Pude ver que [0] no tiene soporte para py3, y [1] lanza un Exception cuando se ejecuta. Existe también [2]
pero no le he instalado porque parece ser ya una applicación más completa, y que desde mi punto de vista
es demasiado para hacer un diff.

Qué opinan cómo continuar?

[0] https://pypi.org/project/podiff/
[1] https://pypi.org/project/potools/
[2] https://pypi.org/project/PoProofRead/

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mejor no darle tanta vuelta, el workflow general es traducir con poedit, usar powrap y mirar las palabras con pospell y ya, como esto es adicional, yo que tu dejo un mensaje que es algo para Python 2 solamente (podiff)
mejor dejas una nota que diga que es solo compatible con Python 2 para podiff y las potools.

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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 pdiff
brew install podiff

Luego abrir el archivo de configuración del respositorio local y escribir al final:

Expand Down