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

Re: [PATCH v4] git: treat "-C <treat>" as a no-op when <path> is empty

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Mar 7, 2015, 02:19 UTC
Message-ID
<CAPig+cTkC1Y1sWJLpG0iUHju3GOMnvOT-nsAU51GykeV2QB+vA@mail.gmail.com>
In-Reply-To
<1425640688-26513-1-git-send-email-karthik.188@gmail.com>
On Fri, Mar 6, 2015 at 6:18 AM, Karthik Nayak <karthik.188@gmail.com> wrote:
Show 10 quoted lines
> 'git -C ""' unhelpfully dies with error "Cannot change to ''",
> whereas the shell treats `cd ""' as a no-op. Taking the shell's
> behavior as a precedent, teach git to treat `-C ""' as a no-op, as
> well.
>
> Test to check the no-op behaviour of "-C <path>" when <path> is
> empty, written by Junio C Hamano.
>
> Helped-by: Junio C Hamano <gitster@pobox.com>
> Helped-by: Eric Sunchine <sunshine@sunshineco.com>
s/Sunchine/Sunshine/
> Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Previous: Junio C HamanoNext: karthik nayak
Message 3 of 8 in “git: treat "-C <treat>" as a no-op when <path> is empty”
  1. git: treat "-C <treat>" as a no-op when <path> is emptyKarthik Nayak, Mar 6, 2015
  2. Junio C HamanoMar 7, 2015
  3. Eric SunshineMar 7, 2015
  4. karthik nayakMar 7, 2015
  5. Eric SunshineMar 8, 2015
  6. karthik nayakMar 8, 2015
  7. Junio C HamanoMar 8, 2015
  8. karthik nayakMar 8, 2015

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.