git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* bug when git stash apply after switching to branch with links were regular files
@ 2022-01-05  0:52 Britton Kerin
  0 siblings, 0 replies; only message in thread
From: Britton Kerin @ 2022-01-05  0:52 UTC (permalink / raw)
  To: git

On git version 2.34.1:

I have a branch where sym links get replaced with copies of the
regular files they point to.  If I make a change to that branch and
git stash it, then git checkout master again, then git stash apply I
get messages like this:

     $ git stash apply
     Adding dirA_thats_now_a_link_again
     Adding dirB_thats_now_a_link_again
     etc.

These messages seem  completely spurious: applying the stash doesn't
result in any actual changes in any of those paths (and the links stay
links).  The only change is to the actual file affected by the stash
(which was a real file in both the branch and master).

Interestingly I was getting this same message a few smallish versions
of git back I believe when I did the checkout back to master.  I
updated to latest stable git and that issue went away.  So it looks
like maybe a fix to get rid of these spurious messages got applied in
one place but not others.

If there's interest in fixing this issue I can go back and isolate it
more carefully on request.

Britton

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-05  0:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-05  0:52 bug when git stash apply after switching to branch with links were regular files Britton Kerin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).