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

Re: [PATCH] bash prompt: test the prompt with newline in repository path

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Aug 16, 2013, 23:44 UTC
Message-ID
<CAPig+cTRKs8_f4Acg6=Le=_ePb1MroL61XUXa9bZG0HKYgrL7w@mail.gmail.com>
In-Reply-To
<1376649395-24363-1-git-send-email-szeder@ira.uka.de>
On Fri, Aug 16, 2013 at 6:36 AM, SZEDER Gábor <szeder@ira.uka.de> wrote:
> This subtlety really warrants its own test, especially since I didn't
> explait it in the log message or in an in-code comment back then, so
s/explait/explain/
Show 7 quoted lines
> add a test to excercise the prompt with newline characters in the path
> to the repository.  Note that 'git rev-parse --git-dir' prints '.git'
> or '.' when at the top of the worktree or the repository,
> respectively, and only prints the full path to the repository when in
> a subdirectory, hence the need for changing into a subdir in the test.
>
> Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Previous: SZEDER Gábor
Message 4 of 4 in “bash prompt: test the prompt with newline in repository path”
  1. bash prompt: test the prompt with newline in repository pathSZEDER Gábor, Aug 16, 2013
  2. Johannes SixtAug 16, 2013
  3. bash prompt: test the prompt with newline in repository pathSZEDER Gábor, Aug 17, 2013
  4. Eric SunshineAug 16, 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.