From 6bed747ef9b8164f0357ead440985da97a7d7da3 Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Sat, 16 May 2020 10:46:17 -0300 Subject: [PATCH 01/10] add .gitattribute --- tutorial/.gitattribute | 1 + 1 file changed, 1 insertion(+) create mode 100644 tutorial/.gitattribute diff --git a/tutorial/.gitattribute b/tutorial/.gitattribute new file mode 100644 index 0000000000..183cdc45af --- /dev/null +++ b/tutorial/.gitattribute @@ -0,0 +1 @@ +*.po diff=podiff From cf504b68583704ae9191bb80ef23a275d802953d Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Sat, 16 May 2020 10:48:57 -0300 Subject: [PATCH 02/10] add .gitattributes --- tutorial/{.gitattribute => .gitattributes} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tutorial/{.gitattribute => .gitattributes} (100%) diff --git a/tutorial/.gitattribute b/tutorial/.gitattributes similarity index 100% rename from tutorial/.gitattribute rename to tutorial/.gitattributes From 92794805575657afc9d99ec7f5512a4294b0af75 Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Mon, 25 May 2020 21:39:01 -0300 Subject: [PATCH 03/10] =?UTF-8?q?agrego=20p=C3=A1gina=20git=20diff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .overrides/git_diff.rst | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .overrides/git_diff.rst diff --git a/.overrides/git_diff.rst b/.overrides/git_diff.rst new file mode 100644 index 0000000000..b904a3c423 --- /dev/null +++ b/.overrides/git_diff.rst @@ -0,0 +1,36 @@ +: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_. + +Una vez instalado brew, hay que instalar podiff, para ellos ejectar el siguiente comando: + +.. code-block:: bash + + brew install pdiff + +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 From 70135fa1c18dac1dbce20b40b2a953f20d9e5782 Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Sat, 6 Jun 2020 10:13:27 -0300 Subject: [PATCH 04/10] remove .gitattribute --- tutorial/.gitattributes | 1 - 1 file changed, 1 deletion(-) delete mode 100644 tutorial/.gitattributes diff --git a/tutorial/.gitattributes b/tutorial/.gitattributes deleted file mode 100644 index 183cdc45af..0000000000 --- a/tutorial/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.po diff=podiff From f8747f70470df96eab821d5e3c1faa2c23dc5aed Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Sat, 6 Jun 2020 11:33:59 -0300 Subject: [PATCH 05/10] add tab according to Mac and linux --- .overrides/git_diff.rst | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.overrides/git_diff.rst b/.overrides/git_diff.rst index b904a3c423..293f0c1e5f 100644 --- a/.overrides/git_diff.rst +++ b/.overrides/git_diff.rst @@ -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 + + /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: From 47d03f837dc9941dae4248bd1fb1d827d179c87f Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Sat, 12 Sep 2020 22:07:10 -0300 Subject: [PATCH 06/10] Quito instlaacion de brew en linux y agrego recomendaciones de podiff y potools --- .overrides/git_diff.rst | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.overrides/git_diff.rst b/.overrides/git_diff.rst index 293f0c1e5f..e23ae2dcb7 100644 --- a/.overrides/git_diff.rst +++ b/.overrides/git_diff.rst @@ -21,22 +21,6 @@ Para ellos debemos instalar brew. Si no lo tienes instalado puedes seguir el ins /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" - .. tab:: Linux - - Para instalar brew en Linux ejecutar - - /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 @@ -57,4 +41,14 @@ archivos .po con los que se van a trabajar, crealo, y luego, agregar la siguien *.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/ \ No newline at end of file From 33aee84010783ad8844d37145a7e1d7ce7d876a7 Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Sat, 12 Sep 2020 22:18:08 -0300 Subject: [PATCH 07/10] Fix code-block --- .overrides/git_diff.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/.overrides/git_diff.rst b/.overrides/git_diff.rst index e23ae2dcb7..872ca88bd4 100644 --- a/.overrides/git_diff.rst +++ b/.overrides/git_diff.rst @@ -45,6 +45,7 @@ Para las distribuciones de Linux se pueden utilizar algunas herramientas, como p potools_, que son compatibles con Python 2. Se puede utilizar `pip` para instalarlas. .. code-block:: bash + pip install podiff # o pip install potools From a48986bad57edc5cc0fdba5631267783879113a4 Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Sat, 12 Sep 2020 22:21:09 -0300 Subject: [PATCH 08/10] Fix code-block again --- .overrides/git_diff.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.overrides/git_diff.rst b/.overrides/git_diff.rst index 872ca88bd4..c706e02818 100644 --- a/.overrides/git_diff.rst +++ b/.overrides/git_diff.rst @@ -46,9 +46,9 @@ potools_, que son compatibles con Python 2. Se puede utilizar `pip` para instala .. code-block:: bash - pip install podiff - # o - pip install potools + pip install podiff + # o + pip install potools .. _Brew: https://docs.brew.sh/Installation .. _podiff: https://pypi.org/project/podiff/ From ecb65b0ccaec0aed26812b9e4b4b3ef9cb200570 Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Sun, 13 Sep 2020 17:23:41 -0300 Subject: [PATCH 09/10] Update .overrides/git_diff.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cristián Maureira-Fredes --- .overrides/git_diff.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.overrides/git_diff.rst b/.overrides/git_diff.rst index c706e02818..dcc3e96813 100644 --- a/.overrides/git_diff.rst +++ b/.overrides/git_diff.rst @@ -11,7 +11,9 @@ El comando `git diff` tiene datos que pueden llegar a ser inútiles como por eje -#: ../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_. +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:: @@ -52,4 +54,4 @@ potools_, que son compatibles con Python 2. Se puede utilizar `pip` para instala .. _Brew: https://docs.brew.sh/Installation .. _podiff: https://pypi.org/project/podiff/ -.. _potools: https://pypi.org/project/potools/ \ No newline at end of file +.. _potools: https://pypi.org/project/potools/ From 5f057b971ca3b8384d778f80b05d989b5b231ca8 Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Sun, 13 Sep 2020 17:26:22 -0300 Subject: [PATCH 10/10] Agrego salto de linea --- .overrides/git_diff.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/.overrides/git_diff.rst b/.overrides/git_diff.rst index dcc3e96813..36d64e6e6f 100644 --- a/.overrides/git_diff.rst +++ b/.overrides/git_diff.rst @@ -13,6 +13,7 @@ El comando `git diff` tiene datos que pueden llegar a ser inútiles como por eje 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::