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

Re: Ambigious messages (sparse checkout)

From
Philip Oakley <philipoakley@iee.email>
Date
Jul 31, 2021, 12:31 UTC
Message-ID
<5b0e38b0-7060-239e-5adf-b751a67f6646@iee.email>
In-Reply-To
<644619140.20210731114616@yandex.ru>
Others may have mistaken this for spam - I nearly did.
On 31/07/2021 09:46, Eugen Konkov wrote:
Show 11 quoted lines
> $ git checkout 51c7d41b82b5b
> error: Your local changes to the following files would be overwritten by checkout:
>        lib/Mojo/IOLoop/Stream.pm
> Please commit your changes or stash them before you switch branches.
> Aborting
> $ git checkout lib/Mojo/IOLoop/Stream.pm
> error: pathspec 'lib/Mojo/IOLoop/Stream.pm' did not match any file(s) known to git
>
> $ git add lib/Mojo/IOLoop/Stream.pm
> The following pathspecs didn't match any eligible path, but they do match index
> entries outside the current sparse checkout:
I strongly suspect it's a sparse checkout issue, given this message.
Others may be able to help better than I.
Show 17 quoted lines
> lib/Mojo/IOLoop/Stream.pm
> hint: Disable or modify the sparsity rules if you intend to update such entries.
> hint: Disable this message with "git config advice.updateSparsePath false"
>
> $ git --version
> git version 2.32.0
>
> Here I do not understand how to checkout to different commit
> or how to commit the subject file
>
> It would be nice to show hint about how to exlude this file from unindex
>
>
> --
> Best regards,
> Eugen Konkov
>

-- Philip

Previous: Eugen KonkovNext: Elijah Newren
Message 2 of 4 in “Ambigious messages”
  1. Eugen KonkovJul 31, 2021
  2. Philip OakleyJul 31, 2021
  3. Elijah NewrenAug 1, 2021
  4. Eugen KonkovAug 2, 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.