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

Re: [PATCH v3] Teach git to change to a given directory using -C option

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 9, 2013, 17:59 UTC
Message-ID
<xmqqa9jl5112.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAPig+cQEor+dBU6Xww25A4Sc-mgEOq1SDmBX-9xM6pKuMqu-NQ@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 30 quoted lines
> On Mon, Sep 9, 2013 at 12:32 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> Nazri Ramliy <ayiehere@gmail.com> writes:
>>
>>> Subject: git: run in a directory given with -C option
>>>
>>> +-C <path>::
>>> +     Run as if git was started in '<path>' instead of the current working
>>> +     directory.  When multiple '-C' options are given, each subsequent
>>
>> I think this should be `-C` to typeset it as "typed literally".
>>
>>> +     non-absolute `-C <path>` is interpreted relative to the preceding `-C
>>> +     <path>`.
>>> ++
>>> +This option affects options that expect path name like '--git-dir' and
>>> +'--work-tree' in that their interpretations of the path names would be
>>
>> Likewise for `--git-dir` and `--work-tree`.
>>
>>> +made relative to the working directory caused by the '-C' option. For
>>
>> and here.
>
> I agree with all of the above, however, the unfortunate typesetting in
> these cases was chosen deliberately to be consistent with the
> immediately surrounding text. A separate typesetting normalization
> patch, either before or after this patch, would not be unwelcome. (I
> forgot to make such a suggestion in [1].)
>
> [1]: http://thread.gmane.org/gmane.comp.version-control.git/233719/focus=234234
OK, thanks for clarification.
Previous: Eric SunshineNext: Eric Sunshine
Message 13 of 14 in “Teach git to change to a given directory using -C option”
  1. Teach git to change to a given directory using -C optionNazri Ramliy, Sep 3, 2013
  2. Junio C HamanoSep 3, 2013
  3. Eric SunshineSep 3, 2013
  4. Nazri RamliySep 4, 2013
  5. Eric SunshineSep 4, 2013
  6. Nazri RamliySep 4, 2013
  7. Eric SunshineSep 8, 2013
  8. Nazri RamliySep 9, 2013
  9. Eric SunshineSep 9, 2013
  10. Nazri RamliySep 9, 2013
  11. Junio C HamanoSep 9, 2013
  12. Eric SunshineSep 9, 2013
  13. Junio C HamanoSep 9, 2013
  14. Eric SunshineSep 9, 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.