possible bug in git apply?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Cc: <rob@...>
Date: Saturday, August 4, 2007 - 3:45 pm

since git doesn't track directories, only content (per the big discussion 
recently) I beleive that doing a checkout would leave Rob without the 
directories that he emptied out, so shouldn't git apply also clear the 
directories to end up in the same state?

David Lang

---------- Forwarded message ----------
Date: Sat, 4 Aug 2007 15:19:54 -0400
From: Rob Landley <rob@landley.net>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roland Dreier <rdreier@cisco.com>,
     Linux Kernel <linux-kernel@vger.kernel.org>, linux-doc@vger.kernel.org,
     Andrew Morton <akpm@linux-foundation.org>, Paul Mundt <lethal@linux-sh.org>
Subject: Re: [PATCH 1/2] Group architecture Documentation under
     Documentation/arch.

On Saturday 04 August 2007 2:03:59 pm Rob Landley wrote:

I really, really, really hate git.

Ok, on my laptop I just noticed that "git apply" of the patch didn't complain
but it also left the empty subdirectories it moved stuff out of.  (I don't
believe this happened on the version of git I was using on my previous
laptop, which ate itself a month and change ago, but obviously I can't
check.)

There is no "git rmdir".  "git rm" refuses to delete the directory
without -r.  "git rm -r Documentation/x86_64" listed (as just deleted) all
the files that the patch already moved out of the directory.

Am I missing something obvious here?

Rob
-- 
"One of my most productive days was throwing away 1000 lines of code."
   - Ken Thompson.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
possible bug in git apply?, , (Sat Aug 4, 3:45 pm)
Re: possible bug in git apply?, Linus Torvalds, (Sun Aug 5, 12:48 am)
Re: possible bug in git apply?, Junio C Hamano, (Sun Aug 5, 1:11 am)
Re: possible bug in git apply?, Linus Torvalds, (Sun Aug 5, 12:59 pm)
Re: possible bug in git apply?, Junio C Hamano, (Mon Aug 6, 4:29 am)
Re: possible bug in git apply?, Junio C Hamano, (Mon Aug 6, 5:37 am)
Re: possible bug in git apply?, David Kastrup, (Sun Aug 5, 1:53 pm)
Re: possible bug in git apply?, Linus Torvalds, (Sun Aug 5, 2:18 pm)
Re: possible bug in git apply?, David Kastrup, (Sun Aug 5, 2:50 pm)
Re: possible bug in git apply?, Linus Torvalds, (Sun Aug 5, 3:20 pm)
Re: possible bug in git apply?, David Kastrup, (Sun Aug 5, 3:37 pm)
Re: possible bug in git apply?, David Kastrup, (Sun Aug 5, 3:55 am)
Re: possible bug in git apply?, Linus Torvalds, (Sun Aug 5, 12:53 am)
Re: possible bug in git apply?, David Kastrup, (Sat Aug 4, 4:08 pm)
Re: possible bug in git apply?, Junio C Hamano, (Sat Aug 4, 4:00 pm)