On Tue, 10 Oct 2017, Heiko Voigt wrote:
> On Sun, Oct 08, 2017 at 07:56:20AM -0400, Robert P. J. Day wrote:
> > but as i asked in my earlier post, if i wanted to remove *all* files
> > with names of "Makefile*", why can't i use:
> >
> > $ git rm 'Makefile*'
> >
> > just as i used:
> >
> > $
On Tue, 10 Oct 2017, Paul Smith wrote:
> On Tue, 2017-10-10 at 04:36 -0400, Robert P. J. Day wrote:
> > ah, now *that* is a compelling rationale that justifies the
> > underlying weirdness. but it still doesn't explain the different
> > behaviour between:
> >
> > $ git rm -n 'Makefile*'
> >
On Tue, 2017-10-10 at 04:36 -0400, Robert P. J. Day wrote:
> ah, now *that* is a compelling rationale that justifies the
> underlying weirdness. but it still doesn't explain the different
> behaviour between:
>
> $ git rm -n 'Makefile*'
> $ git rm -n '*Makefile'
I explained that behavior
On Sun, Oct 08, 2017 at 07:56:20AM -0400, Robert P. J. Day wrote:
> but as i asked in my earlier post, if i wanted to remove *all* files
> with names of "Makefile*", why can't i use:
>
> $ git rm 'Makefile*'
>
> just as i used:
>
> $ git rm '*.c'
>
> are those not both acceptable
"Robert P. J. Day" writes:
> underlying weirdness. but it still doesn't explain the different
> behaviour between:
>
> $ git rm -n 'Makefile*'
> $ git rm -n '*Makefile'
>
> in the linux kernel source tree, the first form matches only the
> single, top-level Makefile,
On Mon, 9 Oct 2017, Jeff King wrote:
> On Sun, Oct 08, 2017 at 04:42:27PM -0400, Theodore Ts'o wrote:
>
> > On Sun, Oct 08, 2017 at 03:44:14PM -0400, Robert P. J. Day wrote:
> > > >
> > > > find | xargs git rm
> > > >
> > > > myself.
> > >
> > > that's what i would have normally used until
On Sun, Oct 08, 2017 at 04:42:27PM -0400, Theodore Ts'o wrote:
> On Sun, Oct 08, 2017 at 03:44:14PM -0400, Robert P. J. Day wrote:
> > >
> > > find | xargs git rm
> > >
> > > myself.
> >
> > that's what i would have normally used until i learned about git's
> > magical globbing
On Sun, Oct 08, 2017 at 03:44:14PM -0400, Robert P. J. Day wrote:
> >
> > find | xargs git rm
> >
> > myself.
>
> that's what i would have normally used until i learned about git's
> magical globbing capabilities, and i'm going to go back to using it,
> because git's magical globbing
On Sun, 8 Oct 2017, Theodore Ts'o wrote:
> On Sun, Oct 08, 2017 at 10:32:40AM -0400, Paul Smith wrote:
> > Personally I don't use Git's magical globbing capabilities, and
> > use "git rm" as if it were UNIX rm. So in your request above I'd
> > use:
> >
> >git rm $(find . -name Makefile)
> >
On Sun, Oct 08, 2017 at 10:32:40AM -0400, Paul Smith wrote:
> Personally I don't use Git's magical globbing capabilities, and use "git
> rm" as if it were UNIX rm. So in your request above I'd use:
>
>git rm $(find . -name Makefile)
>
> which I find simpler.
I have to agree that git's
On Sat, 2017-10-07 at 17:55 -0400, Robert P. J. Day wrote:
> On Sat, 7 Oct 2017, Paul Smith wrote:
> > On Sat, 2017-10-07 at 15:43 -0400, Robert P. J. Day wrote:
> > > it's been a long week, so take this in the spirit in which it is
> > > intended ... i think the "git rm" command and its man page
On Sun, 8 Oct 2017, René Scharfe wrote:
> [My SMTP server still refuses to accept emails to rpj...@crashcourse.ca
> and reports "mailbox unavailable" and "invalid DNS MX or A/ resource
> record." So just replying to the list.]
>
> Am 08.10.2017 um 13:56 schrieb Robert P. J. Day:
> >but
[My SMTP server still refuses to accept emails to rpj...@crashcourse.ca
and reports "mailbox unavailable" and "invalid DNS MX or A/ resource
record." So just replying to the list.]
Am 08.10.2017 um 13:56 schrieb Robert P. J. Day:
>but as i asked in my earlier post, if i wanted to
On 8 October 2017 at 13:56, Robert P. J. Day wrote:
> but as i asked in my earlier post, if i wanted to remove *all* files
> with names of "Makefile*", why can't i use:
>
> $ git rm 'Makefile*'
>
> just as i used:
>
> $ git rm '*.c'
>
> are those not both acceptable
On Sun, 8 Oct 2017, Junio C Hamano wrote:
> "Robert P. J. Day" writes:
>
> > ... so if, in the kernel source
> > tree, i ran:
> >
> > $ git rm \*.c
> >
> > i would end up removing *all* 25,569 "*.c" files in the kernel
> > source repository.
>
> Yes, as that is exactly
On Sun, Oct 08, 2017 at 05:07:12AM -0400, Robert P. J. Day wrote:
> On Sun, 8 Oct 2017, Junio C Hamano wrote:
>
> > "Robert P. J. Day" writes:
> >
> > > ... so if, in the kernel source
> > > tree, i ran:
> > >
> > > $ git rm \*.c
> > >
> > > i would end up removing *all*
On Sun, 8 Oct 2017, Junio C Hamano wrote:
> "Robert P. J. Day" writes:
>
> > ... so if, in the kernel source
> > tree, i ran:
> >
> > $ git rm \*.c
> >
> > i would end up removing *all* 25,569 "*.c" files in the kernel source
> > repository.
>
> Yes, as that is exactly
"Robert P. J. Day" writes:
> ... so if, in the kernel source
> tree, i ran:
>
> $ git rm \*.c
>
> i would end up removing *all* 25,569 "*.c" files in the kernel source
> repository.
Yes, as that is exactly what the command line asks Git to do.
If you said
$ git rm
On Sat, 2017-10-07 at 15:43 -0400, Robert P. J. Day wrote:
> it's been a long week, so take this in the spirit in which it is
> intended ... i think the "git rm" command and its man page should be
> printed out, run through a paper shredder, then set on fire. i can't
> remember the last time i
On Sat, 7 Oct 2017, Paul Smith wrote:
> On Sat, 2017-10-07 at 15:43 -0400, Robert P. J. Day wrote:
> > it's been a long week, so take this in the spirit in which it is
> > intended ... i think the "git rm" command and its man page should be
> > printed out, run through a paper shredder, then
On Sat, 7 Oct 2017, Theodore Ts'o wrote:
> On Sat, Oct 07, 2017 at 03:43:43PM -0400, Robert P. J. Day wrote:
> > > -r
> > > Recursively remove the contents of any directories that match
> > > ``.
> > >
> > > or something.
> >
> > it's been a long week, so take this in the spirit in which
On Sat, Oct 07, 2017 at 03:43:43PM -0400, Robert P. J. Day wrote:
> > -r
> > Recursively remove the contents of any directories that match
> > ``.
> >
> > or something.
>
> it's been a long week, so take this in the spirit in which it is
> intended ... i think the "git rm" command and
On Sat, 7 Oct 2017, Jeff King wrote:
> On Sat, Oct 07, 2017 at 03:32:24PM -0400, Robert P. J. Day wrote:
>
> > > Nothing, because there is nothing to recurse in the pathspecs you've
> > > given.
> > >
> > > Try:
> > >
> > > $ git rm drivers
> > > fatal: not removing 'drivers' recursively
On Sat, Oct 07, 2017 at 03:32:24PM -0400, Robert P. J. Day wrote:
> > Nothing, because there is nothing to recurse in the pathspecs you've
> > given.
> >
> > Try:
> >
> > $ git rm drivers
> > fatal: not removing 'drivers' recursively without -r
> >
> > versus
> >
> > $ git rm -r drivers
> >
On Sat, 7 Oct 2017, Jeff King wrote:
> On Sat, Oct 07, 2017 at 03:12:01PM -0400, Robert P. J. Day wrote:
>
> > ok, in that case, can you give me an example where "-r" makes a
> > difference, given that the man page refers to "a leading directory
> > name being given"? let's use as an example
On Sat, Oct 07, 2017 at 03:12:01PM -0400, Robert P. J. Day wrote:
> ok, in that case, can you give me an example where "-r" makes a
> difference, given that the man page refers to "a leading directory
> name being given"? let's use as an example the linux kernel source,
> where there are a
On Sat, 7 Oct 2017, Todd Zullinger wrote:
> Robert P. J. Day wrote:
> >
> > was just testing variations of "git rm", and man page claims:
> >
> > -r Allow recursive removal when a leading directory name is given.
> >
> > i tested this on the "pro git" book repo, which contains a top-level
Robert P. J. Day wrote:
was just testing variations of "git rm", and man page claims:
-r
Allow recursive removal when a leading directory name is given.
i tested this on the "pro git" book repo, which contains a top-level
"book/" directory, and quite a number of "*.asc" files in
was just testing variations of "git rm", and man page claims:
-r
Allow recursive removal when a leading directory name is given.
i tested this on the "pro git" book repo, which contains a top-level
"book/" directory, and quite a number of "*.asc" files in various
subdirectories one or
29 matches
Mail list logo