git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 0/5] git-prompt: cleaning and improvement

From
Eduardo R. D'Avila <erdavila@gmail.com>
Date
Jun 26, 2013, 03:05 UTC
Message-ID
<cover.1372211661.git.erdavila@gmail.com>
Changes since the first version [1]:
 - During refactorization in 2/5, mention what the lack of \[...\] can affect.
 - New patch 3/5 that removes redundant tests (noticed by SZEDER Gábor [2])
 - Rephrasing in 5/5:
   - rephrasing suggested by SZEDER Gábor [3]
   - rephrase some parts that mention only the "current branch name" being
     displayed in the prompt by stating that the "repository status"
     is displayed.
   - explain the color codes in the ZSH precmd example (there was an
     explanation that applied only for the Bash example, but it was not
     clear that it did not apply to ZSH).

Following Gábor's example, I merged his patches series [4] to mine and published at:

  https://github.com/erdavila/git.git bash-prompt-speedup-and-color-refactorization

Both Gábor's and my series were rebased/applied on top of the current master 9832cb9d4d.

Thanks,
Eduardo

[1] http://thread.gmane.org/gmane.comp.version-control.git/228566 [2] http://article.gmane.org/gmane.comp.version-control.git/228705 [3] http://article.gmane.org/gmane.comp.version-control.git/228707 [4] http://thread.gmane.org/gmane.comp.version-control.git/228851

Eduardo R. D'Avila (5):
  t9903: add tests for git-prompt pcmode
  git-prompt.sh: refactor colored prompt code
  t9903: remove redundant tests
  git-prompt.sh: do not print duplicate clean color code
  git-prompt.sh: add missing information in comments
 contrib/completion/git-prompt.sh | 111 ++++++++++++------------------
 t/t9903-bash-prompt.sh           | 141 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 182 insertions(+), 70 deletions(-)
-- 
1.8.3.1.590.g42a98dd
Next: Eduardo R. D'Avila
Message 1 of 10 in “git-prompt: cleaning and improvement”
  1. 0/5 git-prompt: cleaning and improvementEduardo R. D'Avila, Jun 26, 2013
  2. 1/5 t9903: add tests for git-prompt pcmodeEduardo R. D'Avila, Jun 26, 2013
  3. 2/5 git-prompt.sh: refactor colored prompt codeEduardo R. D'Avila, Jun 26, 2013
  4. 3/5 t9903: remove redundant testsEduardo R. D'Avila, Jun 26, 2013
  5. 4/5 git-prompt.sh: do not print duplicate clean color codeEduardo R. D'Avila, Jun 26, 2013
  6. 5/5 git-prompt.sh: add missing information in commentsEduardo R. D'Avila, Jun 26, 2013
  7. Junio C HamanoJun 27, 2013
  8. Eduardo R. D'AvilaJun 28, 2013
  9. SZEDER GáborJun 28, 2013
  10. Junio C HamanoJun 28, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.