git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 3/4 v2] Add tests for .git file

From
LHLars Hjemli <hjemli@gmail.com>
Date
Feb 6, 2008, 10:35 UTC
Message-ID
<8c5c35580802060235n52019c16j4404c06d53b47100@mail.gmail.com>
In-Reply-To
<7vr6fqz939.fsf@gitster.siamese.dyndns.org>
On Feb 6, 2008 11:13 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 15 quoted lines
> "Lars Hjemli" <hjemli@gmail.com> writes:
>
> > On Feb 6, 2008 9:40 AM, Junio C Hamano <gitster@pobox.com> wrote:
> >> Lars Hjemli <hjemli@gmail.com> writes:
> >> > +objpath() {
> >> > +    echo $1 | sed -re 's|(..)(.+)|\1/\2|'
> >> > +}
> >>
> >> "sed -r"???  Please limit ourselves to the basics.
> >
> > Sorry, I didn't realize 'sed -r' wasn't kosher. Should I resend or is
> > this something you'd --amend?
>
> If we live in POSIX only world it is fine, but I try to be
> conservative when I am able.
Ok, good to know that my lack of experience doesn't pollute the codebase ;-)
Show 6 quoted lines
> No need to resend; I've done something like this (there are
> other minor amends).
>...
>     +objpath() {
>     +    echo "$1" | sed -e 's|\(..\)|\1/|'
>     +}

Thanks. -- larsh

Previous: Junio C Hamano
Message 13 of 13 in “Introduce the .git-file”
  1. 0/4 Introduce the .git-fileLars Hjemli, Feb 4, 2008
  2. 1/4 Add platform-independent .git "symlink"Lars Hjemli, Feb 4, 2008
  3. 2/4 Document the .git-fileLars Hjemli, Feb 4, 2008
  4. 3/4 Add tests for .git fileLars Hjemli, Feb 4, 2008
  5. 4/4 git-submodule: prepare for the .git-fileLars Hjemli, Feb 4, 2008
  6. Mike HommeyFeb 4, 2008
  7. Lars HjemliFeb 4, 2008
  8. Junio C HamanoFeb 6, 2008
  9. 3/4 Add tests for .git fileLars Hjemli, Feb 6, 2008
  10. Junio C HamanoFeb 6, 2008
  11. Lars HjemliFeb 6, 2008
  12. Junio C HamanoFeb 6, 2008
  13. Lars HjemliFeb 6, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.