All of lore.kernel.org
 help / color / mirror / Atom feed
* BUG: checkout won't checkout?
@ 2015-06-18 22:07 Luke Diamand
  2015-06-18 22:13 ` Luke Diamand
  2015-06-18 22:28 ` Junio C Hamano
  0 siblings, 2 replies; 7+ messages in thread
From: Luke Diamand @ 2015-06-18 22:07 UTC (permalink / raw)
  To: Git Users

This is probably user error, but I'm not sure what I'm doing wrong.
I'm posting here in case anyone else gets the same thing

I'm using 2.4.4.598.gd7bed1d, i.e. 'next' as of today.

I've somehow ended up with history skipping back in time, but git not
prepared to let let me fix it, or something.

$ git diff upstream/master -- subtree
 - lots of deltas, which look like I've reverted this back several
revisions (which I haven't AFAIK)
$ git checkout upstream/master -- subtree
$ git diff upstream/master -- subtree
-- still lots of deltas
$ git checkout upstream/master -- subtree
$ git commit -m 'Revert unwanted changes'
$ git diff upstream/master -- subtree
-- still lots of deltas

What am I doing wrong? Have I ended up in the middle of some weird
state (cherry-pick and rebase isn't in progress AFAIK).

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: BUG: checkout won't checkout?
  2015-06-18 22:07 BUG: checkout won't checkout? Luke Diamand
@ 2015-06-18 22:13 ` Luke Diamand
  2015-06-18 22:28 ` Junio C Hamano
  1 sibling, 0 replies; 7+ messages in thread
From: Luke Diamand @ 2015-06-18 22:13 UTC (permalink / raw)
  To: Git Users

The other thing about these files is that they were all deleted a few
weeks ago and have now come back.

On 18 June 2015 at 23:07, Luke Diamand <luke@diamand.org> wrote:
> This is probably user error, but I'm not sure what I'm doing wrong.
> I'm posting here in case anyone else gets the same thing
>
> I'm using 2.4.4.598.gd7bed1d, i.e. 'next' as of today.
>
> I've somehow ended up with history skipping back in time, but git not
> prepared to let let me fix it, or something.
>
> $ git diff upstream/master -- subtree
>  - lots of deltas, which look like I've reverted this back several
> revisions (which I haven't AFAIK)
> $ git checkout upstream/master -- subtree
> $ git diff upstream/master -- subtree
> -- still lots of deltas
> $ git checkout upstream/master -- subtree
> $ git commit -m 'Revert unwanted changes'
> $ git diff upstream/master -- subtree
> -- still lots of deltas
>
> What am I doing wrong? Have I ended up in the middle of some weird
> state (cherry-pick and rebase isn't in progress AFAIK).

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: BUG: checkout won't checkout?
  2015-06-18 22:07 BUG: checkout won't checkout? Luke Diamand
  2015-06-18 22:13 ` Luke Diamand
@ 2015-06-18 22:28 ` Junio C Hamano
  2015-06-18 22:32   ` Junio C Hamano
  2015-06-18 22:47   ` Luke Diamand
  1 sibling, 2 replies; 7+ messages in thread
From: Junio C Hamano @ 2015-06-18 22:28 UTC (permalink / raw)
  To: Luke Diamand; +Cc: Git Users

Luke Diamand <luke@diamand.org> writes:

> This is probably user error, but I'm not sure what I'm doing wrong.
> I'm posting here in case anyone else gets the same thing
>
> I'm using 2.4.4.598.gd7bed1d, i.e. 'next' as of today.
>
> I've somehow ended up with history skipping back in time, but git not
> prepared to let let me fix it, or something.
>
> $ git diff upstream/master -- subtree
>  - lots of deltas, which look like I've reverted this back several
> revisions (which I haven't AFAIK)

Are you on the right branch that you think you are working on?

> $ git checkout upstream/master -- subtree
> $ git diff upstream/master -- subtree
> -- still lots of deltas

Does this show _ONLY_ additions?  Or does it include modifications
and removals?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: BUG: checkout won't checkout?
  2015-06-18 22:28 ` Junio C Hamano
@ 2015-06-18 22:32   ` Junio C Hamano
  2015-06-18 22:47   ` Luke Diamand
  1 sibling, 0 replies; 7+ messages in thread
From: Junio C Hamano @ 2015-06-18 22:32 UTC (permalink / raw)
  To: Luke Diamand; +Cc: Git Users

Junio C Hamano <gitster@pobox.com> writes:

>> $ git checkout upstream/master -- subtree
>> $ git diff upstream/master -- subtree
>> -- still lots of deltas
>
> Does this show _ONLY_ additions?  Or does it include modifications
> and removals?

The reason I ask this question is because of 

http://thread.gmane.org/gmane.comp.version-control.git/234903/focus=234924

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: BUG: checkout won't checkout?
  2015-06-18 22:28 ` Junio C Hamano
  2015-06-18 22:32   ` Junio C Hamano
@ 2015-06-18 22:47   ` Luke Diamand
  2015-06-18 22:53     ` Junio C Hamano
  1 sibling, 1 reply; 7+ messages in thread
From: Luke Diamand @ 2015-06-18 22:47 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Users

On 18 June 2015 at 23:28, Junio C Hamano <gitster@pobox.com> wrote:
> Luke Diamand <luke@diamand.org> writes:
>
>> This is probably user error, but I'm not sure what I'm doing wrong.
>> I'm posting here in case anyone else gets the same thing
>>
>> I'm using 2.4.4.598.gd7bed1d, i.e. 'next' as of today.
>>
>> I've somehow ended up with history skipping back in time, but git not
>> prepared to let let me fix it, or something.
>>
>> $ git diff upstream/master -- subtree
>>  - lots of deltas, which look like I've reverted this back several
>> revisions (which I haven't AFAIK)
>
> Are you on the right branch that you think you are working on?

Yes.

>
>> $ git checkout upstream/master -- subtree
>> $ git diff upstream/master -- subtree
>> -- still lots of deltas
>
> Does this show _ONLY_ additions?  Or does it include modifications
> and removals?

There are indeed _ONLY_ additions.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: BUG: checkout won't checkout?
  2015-06-18 22:47   ` Luke Diamand
@ 2015-06-18 22:53     ` Junio C Hamano
  2015-06-18 22:56       ` Luke Diamand
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2015-06-18 22:53 UTC (permalink / raw)
  To: Luke Diamand; +Cc: Git Users

Luke Diamand <luke@diamand.org> writes:

>>> $ git checkout upstream/master -- subtree
>>> $ git diff upstream/master -- subtree
>>> -- still lots of deltas
>>
>> Does this show _ONLY_ additions?  Or does it include modifications
>> and removals?
>
> There are indeed _ONLY_ additions.

http://thread.gmane.org/gmane.comp.version-control.git/234903/focus=234912
http://thread.gmane.org/gmane.comp.version-control.git/234903/focus=234924

In short, it is an intended behaviour, both Peff and I consider that
the intention is bad and the behaviour should be changed.

But nothing has happened yet (it is listed as one of the "leftover
bits" http://git-blame.blogspot.com/p/leftover-bits.html).

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: BUG: checkout won't checkout?
  2015-06-18 22:53     ` Junio C Hamano
@ 2015-06-18 22:56       ` Luke Diamand
  0 siblings, 0 replies; 7+ messages in thread
From: Luke Diamand @ 2015-06-18 22:56 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Users

On 18 June 2015 at 23:53, Junio C Hamano <gitster@pobox.com> wrote:
> Luke Diamand <luke@diamand.org> writes:
>
>>>> $ git checkout upstream/master -- subtree
>>>> $ git diff upstream/master -- subtree
>>>> -- still lots of deltas
>>>
>>> Does this show _ONLY_ additions?  Or does it include modifications
>>> and removals?
>>
>> There are indeed _ONLY_ additions.
>
> http://thread.gmane.org/gmane.comp.version-control.git/234903/focus=234912
> http://thread.gmane.org/gmane.comp.version-control.git/234903/focus=234924
>
> In short, it is an intended behaviour, both Peff and I consider that
> the intention is bad and the behaviour should be changed.

OK, thanks, it makes sense now!

>
> But nothing has happened yet (it is listed as one of the "leftover
> bits" http://git-blame.blogspot.com/p/leftover-bits.html).

OK, I'll keep it in mind.

Luke

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-18 22:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-18 22:07 BUG: checkout won't checkout? Luke Diamand
2015-06-18 22:13 ` Luke Diamand
2015-06-18 22:28 ` Junio C Hamano
2015-06-18 22:32   ` Junio C Hamano
2015-06-18 22:47   ` Luke Diamand
2015-06-18 22:53     ` Junio C Hamano
2015-06-18 22:56       ` Luke Diamand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.