* Strange "git stash pop" conflict (one chunk out of many)
@ 2022-12-15 11:38 Ulrich Windl
2022-12-17 1:58 ` Bagas Sanjaya
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Ulrich Windl @ 2022-12-15 11:38 UTC (permalink / raw)
To: git
Hi!
This is for a somewhat older git-2.26.2:
I had added interactively some changes using edit of a few junks (I tried to structure my big hacking into logical junks when committing).
To test whether the partial commit would be consistent, I did a "git stash -k" before committing, and after committing I did a "git stash pop" to continue hacking.
Unfortunately I had a "Merge conflict". Looking at it, it is rather "interesting", however (meaning: I don't understand it).
Here is how the conflict looks (to me both variants seem identical):
# pre-allocate translations and accesskeys
<<<<<<< Updated upstream
foreach my $attr (LD_SEARCH_ATTR) {
$attr{$attr} = [translate_attr($attr), undef];
$attr{$attr}->[1] = add_access_key($aks, 0, $attr{$attr}->[0]);
}
foreach my $attr (LD_SEARCH_ATTR) {
=======
foreach my $attr (LD_SEARCH_ATTR) {
$attr{$attr} = [translate_attr($attr), undef];
$attr{$attr}->[1] = add_access_key($aks, 0, $attr{$attr}->[0]);
}
foreach my $attr (LD_SEARCH_ATTR) {
>>>>>>> Stashed changes
@n = (P_P_SRCH_ATTR . $attr, @{$attr{$attr}});
(the other conflict junks look reasonable)
Regards,
Ulrich
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange "git stash pop" conflict (one chunk out of many)
2022-12-15 11:38 Strange "git stash pop" conflict (one chunk out of many) Ulrich Windl
@ 2022-12-17 1:58 ` Bagas Sanjaya
2022-12-17 10:45 ` Phillip Wood
2022-12-19 7:16 ` Antw: [EXT] " Ulrich Windl
2022-12-17 10:44 ` Phillip Wood
[not found] ` <967939F9020000A8CE842B1F@gwsmtp.uni-regensburg.de>
2 siblings, 2 replies; 6+ messages in thread
From: Bagas Sanjaya @ 2022-12-17 1:58 UTC (permalink / raw)
To: Ulrich Windl, git
On 12/15/22 18:38, Ulrich Windl wrote:
> Here is how the conflict looks (to me both variants seem identical):
>
> # pre-allocate translations and accesskeys
> <<<<<<< Updated upstream
> foreach my $attr (LD_SEARCH_ATTR) {
> $attr{$attr} = [translate_attr($attr), undef];
> $attr{$attr}->[1] = add_access_key($aks, 0, $attr{$attr}->[0]);
> }
> foreach my $attr (LD_SEARCH_ATTR) {
> =======
> foreach my $attr (LD_SEARCH_ATTR) {
> $attr{$attr} = [translate_attr($attr), undef];
> $attr{$attr}->[1] = add_access_key($aks, 0, $attr{$attr}->[0]);
> }
> foreach my $attr (LD_SEARCH_ATTR) {
>>>>>>>> Stashed changes
> @n = (P_P_SRCH_ATTR . $attr, @{$attr{$attr}});
>
Both sides are identical? You can freely choose either side...
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange "git stash pop" conflict (one chunk out of many)
2022-12-17 1:58 ` Bagas Sanjaya
@ 2022-12-17 10:45 ` Phillip Wood
2022-12-19 7:16 ` Antw: [EXT] " Ulrich Windl
1 sibling, 0 replies; 6+ messages in thread
From: Phillip Wood @ 2022-12-17 10:45 UTC (permalink / raw)
To: Bagas Sanjaya, Ulrich Windl, git
On 17/12/2022 01:58, Bagas Sanjaya wrote:
> On 12/15/22 18:38, Ulrich Windl wrote:
>> Here is how the conflict looks (to me both variants seem identical):
>>
>> # pre-allocate translations and accesskeys
>> <<<<<<< Updated upstream
>> foreach my $attr (LD_SEARCH_ATTR) {
>> $attr{$attr} = [translate_attr($attr), undef];
>> $attr{$attr}->[1] = add_access_key($aks, 0, $attr{$attr}->[0]);
>> }
>> foreach my $attr (LD_SEARCH_ATTR) {
>> =======
>> foreach my $attr (LD_SEARCH_ATTR) {
>> $attr{$attr} = [translate_attr($attr), undef];
>> $attr{$attr}->[1] = add_access_key($aks, 0, $attr{$attr}->[0]);
>> }
>> foreach my $attr (LD_SEARCH_ATTR) {
>>>>>>>>> Stashed changes
>> @n = (P_P_SRCH_ATTR . $attr, @{$attr{$attr}});
>>
>
> Both sides are identical? You can freely choose either side...
But if both sides are identical then there should not be a conflict -
that is what Ulrich is asking about I think.
Best Wishes
Phillip
^ permalink raw reply [flat|nested] 6+ messages in thread
* Antw: [EXT] Re: Strange "git stash pop" conflict (one chunk out of many)
2022-12-17 1:58 ` Bagas Sanjaya
2022-12-17 10:45 ` Phillip Wood
@ 2022-12-19 7:16 ` Ulrich Windl
1 sibling, 0 replies; 6+ messages in thread
From: Ulrich Windl @ 2022-12-19 7:16 UTC (permalink / raw)
To: bagasdotme, git
>>> Bagas Sanjaya <bagasdotme@gmail.com> schrieb am 17.12.2022 um 02:58 in
Nachricht <ced6bacc-3d77-4d24-33f3-a93d2ae7a131@gmail.com>:
> On 12/15/22 18:38, Ulrich Windl wrote:
>> Here is how the conflict looks (to me both variants seem identical):
>>
>> # pre-allocate translations and accesskeys
>> <<<<<<< Updated upstream
>> foreach my $attr (LD_SEARCH_ATTR) {
>> $attr{$attr} = [translate_attr($attr), undef];
>> $attr{$attr}->[1] = add_access_key($aks, 0, $attr{$attr}->[0]);
>> }
>> foreach my $attr (LD_SEARCH_ATTR) {
>> =======
>> foreach my $attr (LD_SEARCH_ATTR) {
>> $attr{$attr} = [translate_attr($attr), undef];
>> $attr{$attr}->[1] = add_access_key($aks, 0, $attr{$attr}->[0]);
>> }
>> foreach my $attr (LD_SEARCH_ATTR) {
>>>>>>>>> Stashed changes
>> @n = (P_P_SRCH_ATTR . $attr, @{$attr{$attr}});
>>
>
> Both sides are identical? You can freely choose either side...
Yes, but why do I have to handle this obvious non-conflict?
Couldn't "stash" handle that, too? In fact that was the only conflict I had.
>
> --
> An old man doll... just what I always wanted! - Clara
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange "git stash pop" conflict (one chunk out of many)
2022-12-15 11:38 Strange "git stash pop" conflict (one chunk out of many) Ulrich Windl
2022-12-17 1:58 ` Bagas Sanjaya
@ 2022-12-17 10:44 ` Phillip Wood
[not found] ` <967939F9020000A8CE842B1F@gwsmtp.uni-regensburg.de>
2 siblings, 0 replies; 6+ messages in thread
From: Phillip Wood @ 2022-12-17 10:44 UTC (permalink / raw)
To: Ulrich Windl, git
Hi Ulrich
On 15/12/2022 11:38, Ulrich Windl wrote:
> Hi!
>
> This is for a somewhat older git-2.26.2:
> I had added interactively some changes using edit of a few junks (I tried to structure my big hacking into logical junks when committing).
> To test whether the partial commit would be consistent, I did a "git stash -k" before committing, and after committing I did a "git stash pop" to continue hacking.
>
> Unfortunately I had a "Merge conflict". Looking at it, it is rather "interesting", however (meaning: I don't understand it).
> Here is how the conflict looks (to me both variants seem identical):
Yes, it does look "interesting". Did you make any changes between
running "git stash -k" and "git stash pop"? I did wonder if there had
been some whitespace changes where spaces were replaced with tabs or
vice-versa ("git stash" uses "git apply" to create the stash so if you
have apply.whitespace set to "fix" the stashed changes will not
necessarily match those in the working copy) but diffing the two sides
of the conflict does not show any changes.
Best Wishes
Phillip
> # pre-allocate translations and accesskeys
> <<<<<<< Updated upstream
> foreach my $attr (LD_SEARCH_ATTR) {
> $attr{$attr} = [translate_attr($attr), undef];
> $attr{$attr}->[1] = add_access_key($aks, 0, $attr{$attr}->[0]);
> }
> foreach my $attr (LD_SEARCH_ATTR) {
> =======
> foreach my $attr (LD_SEARCH_ATTR) {
> $attr{$attr} = [translate_attr($attr), undef];
> $attr{$attr}->[1] = add_access_key($aks, 0, $attr{$attr}->[0]);
> }
> foreach my $attr (LD_SEARCH_ATTR) {
>>>>>>>> Stashed changes
> @n = (P_P_SRCH_ATTR . $attr, @{$attr{$attr}});
>
> (the other conflict junks look reasonable)
>
> Regards,
> Ulrich
>
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <967939F9020000A8CE842B1F@gwsmtp.uni-regensburg.de>]
end of thread, other threads:[~2022-12-19 7:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-15 11:38 Strange "git stash pop" conflict (one chunk out of many) Ulrich Windl
2022-12-17 1:58 ` Bagas Sanjaya
2022-12-17 10:45 ` Phillip Wood
2022-12-19 7:16 ` Antw: [EXT] " Ulrich Windl
2022-12-17 10:44 ` Phillip Wood
[not found] ` <967939F9020000A8CE842B1F@gwsmtp.uni-regensburg.de>
[not found] ` <63A012F0020000A10005084B@gwsmtp.uni-regensburg.de>
2022-12-19 7:31 ` Wtrlt: Antw: [EXT] " Ulrich Windl
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 NNTP newsgroup(s).