[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: elpa - problem with stashes inside worktree
From: |
Andreas Schwab |
Subject: |
Re: elpa - problem with stashes inside worktree |
Date: |
Wed, 07 Apr 2021 19:58:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
On Apr 07 2021, Filipp Gunbin wrote:
> Hi, I've got this problem in elpa repo:
>
> - make a new stash in some package (just "git stash")
> - C-x v d on top-level elpa directory
> - vc-git-stash-apply-at-point on the just created stash fails
>
> Stash diff looks like this:
>
> diff --git a/javaimp.el b/javaimp.el
> index 8e27452418..a9781630e9 100644
> --- a/javaimp.el
> +++ b/javaimp.el
> @@ -577,4 +577,6 @@ cache."
>
> (provide 'javaimp)
>
> +asdf
> +
> ;;; javaimp.el ends here
>
> The file path is wrong, and change is applied to the wrong file. Looks
> like Git creates stash using package worktree dir as the top directory.
That is correct, as the package lives in a separate branch.
> From C-x v d on a package directory, stash can be applied normally.
The main elpa branch just doesn't contain anything related to packages.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."