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

Re: [PATCH 1/2] t3401: modernize style

From
Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Date
Dec 10, 2011, 08:14 UTC
Message-ID
<CAOeW2eGbwQZRDXn0crMD2eMTkw3eqWeCS3x2p4VhT65q45cs0Q@mail.gmail.com>
In-Reply-To
<20111209200703.GA21280@elie.hsd1.il.comcast.net>
On Fri, Dec 9, 2011 at 12:07 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 7 quoted lines
> Ramkumar Ramachandra wrote:
>
>> The motivation is unclear: lazy afternoon? :P
>
> Perhaps he was reading the list and after noticing a few patches in
> the same vein, realized that this test script could be made easier to
> read, too.

Sort of. These patches have been sitting in my repo since late Sept and the patches you mention made me decide to send them out now. The reason I did this back then was while trying to fix rebase to pick the right patches when used with --onto. See this old discussion: http://thread.gmane.org/gmane.comp.version-control.git/161917/focus=162041. Also in the same series are patches teach rebase to only feed the commit names to git-am (wrapped in a silly "From $sha1 Mon Sep 17 00:00:00 2001" to please git-mailsplit). These patches have been taking way too long, which is why I'm sending these little cleanups separately.

Show 10 quoted lines
>> Martin von Zweigbergk wrote:
>
>>> +       echo First > A &&
>>> +       git update-index --add A &&
>>> +       git commit -m "Add A." &&
>>
>> Style nit: >[^ ] is prevalent FWIW.
>
> Finally I caught on that you mean that redirection operators tend to
> be flush against the filename they are redirecting to.

So did I. I think I'll leave the code unchanged, though, because the end result, after patch 2/2 is unaffected anyways (it removes redirections).

>> While at it, why not change this "test ! -d" to
>> "test_path_is_missing"?

Will bake it into patch 2/2 if you don't mind. Unless there are other comments, that would mean this patch can be applies as is, Junio.

> The patch looks good to me, too.  Thanks, both.
Thanks to you both, too.
Previous: Jonathan Nieder
Message 7 of 7 in “t3401: modernize style”
  1. 1/2 t3401: modernize styleMartin von Zweigbergk, Dec 9, 2011
  2. 2/2 t3401: use test_commit in setupMartin von Zweigbergk, Dec 9, 2011
  3. Ramkumar RamachandraDec 9, 2011
  4. Jonathan NiederDec 9, 2011
  5. Ramkumar RamachandraDec 9, 2011
  6. Jonathan NiederDec 9, 2011
  7. Martin von ZweigbergkDec 10, 2011

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.