From: Alex Riesen <raa.lkml@gmail.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Junio C Hamano <junkio@cox.net>, Git Mailing List <git@vger.kernel.org>
Subject: Re: Improve handling of "." and ".." in git-diff-*
Date: Tue, 23 Aug 2005 21:54:55 +0200 [thread overview]
Message-ID: <81b0412b05082312542bd1ecc@mail.gmail.com> (raw)
In-Reply-To: <81b0412b050823124938d735bf@mail.gmail.com>
On 8/23/05, Alex Riesen <raa.lkml@gmail.com> wrote:
> On 8/17/05, Linus Torvalds <torvalds@osdl.org> wrote:
> > NOTE! This does _not_ handle ".." or "." in the _middle_ of a pathspec. If
> > you have people who do
>
> BTW, could this (below) be useful for something?
>
Well, a bit of explanation is certainly missing, sorry. The code tries
to emulate
(on purely text level) the behaviour of chdir(2), including stopping at root,
going back and forth and removing useless (not changing directory)
parts like "/./".
The file in the previous message can be tested with :
gcc -DCHECK_PATHEXPAND patchexpand.c && ./aout
Cheers,
Alex Riesen.
PS: Before anyone asked: the code is mine and free for any use.
prev parent reply other threads:[~2005-08-23 19:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-17 3:44 Improve handling of "." and ".." in git-diff-* Linus Torvalds
2005-08-17 3:52 ` Linus Torvalds
2005-08-23 19:49 ` Alex Riesen
2005-08-23 19:54 ` Alex Riesen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81b0412b05082312542bd1ecc@mail.gmail.com \
--to=raa.lkml@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).