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

git rm --pathspec-from-file does not work in subdirectories

From
DEDietrich Epp <depp@moria.us>
Date
May 28, 2021, 04:20 UTC
Message-ID
<CAKGua8U25GF=mC+vRARRY99ZgaHoUOA7vppmOUdWoeB=bf3NAA@mail.gmail.com>

How to reproduce: cd into a subdirectory and use git rm --pathspec-from-file. For example, in Git's repo, at the top level:

$ git rm --pathspec-from-file=/dev/null fatal: No pathspec was given. Which files should I remove? $ cd compat $ git rm --pathspec-from-file=/dev/null fatal: --pathspec-from-file is incompatible with pathspec arguments

However, git add works as expected.
Tested on commit 5afd72a96f0a3f65a832fd1448d9de1c534aaa69 (master)
Next: Junio C Hamano
Message 1 of 4 in “git rm --pathspec-from-file does not work in subdirectories”
  1. Dietrich EppMay 28, 2021
  2. Junio C HamanoMay 28, 2021
  3. Eric SunshineMay 28, 2021
  4. Junio C HamanoMay 28, 2021

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.