cmcculloh/GitScripts — Issue #21: gitdiff command should not include $ character in output
Author: chriscorwin
Created: 2012-01-12 16:14:24+00:00
State: open

The output of "gitdiff" makes it tricky to copy/paste.

Currently we get:

------------------------------------------------------------------------------------
$ git diff --name-status 8871920..bbfa48e
M modules/base/j2ee-apps/base/web-app.war/assets/scripts/library/0131.jquery.validation.extensions.js
M modules/base/j2ee-apps/base/web-app.war/checkout/fragments/ship_body.jsp

git diff -w 8871920..bbfa48e
------------------------------------------------------------------------------------

Do diff? y (n)

...I believe the $ part should be ommited for easier copying of the results to be:

$ gitdiff

------------------------------------------------------------------------------------
git diff --name-status 8871920..bbfa48e
M modules/base/j2ee-apps/base/web-app.war/assets/scripts/library/0131.jquery.validation.extensions.js
M modules/base/j2ee-apps/base/web-app.war/checkout/fragments/ship_body.jsp

git diff -w 8871920..bbfa48e
------------------------------------------------------------------------------------

Do diff? y (n)