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

Behaviour of git apply --directory

From
ABAndrew Berry <andrewberry@sentex.net>
Date
Aug 22, 2011, 15:21 UTC
Message-ID
<E21BC0F8-2DF0-44AB-B18A-013451CDB670@sentex.net>
Hi,
The behaviour of git apply --directory seems a little confusing. It looks to be dependent on the current directory, but I can't use relative paths to apply a patch in one directory to a sibling directory. Absolute paths don't work either. I'd expected the parameter to either be relative to the git repository root, or to expand relative directories.
Any thoughts?
--Andrew
Next: Junio C Hamano
Message 1 of 3 in “Behaviour of git apply --directory”
  1. Andrew BerryAug 22, 2011
  2. Junio C HamanoAug 22, 2011
  3. Andrew BerryAug 24, 2011

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.