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

Re: [PATCH] tests: cleanup binary images usage

From
Vitaliy Ivanov <vitalivanov@gmail.com>
Date
Jul 19, 2011, 21:38 UTC
Message-ID
<1311111522.1659.1.camel@vitaliy-Vostro-1400>
In-Reply-To
<7v39i29jpe.fsf@alter.siamese.dyndns.org>
On Tue, 2011-07-19 at 12:03 -0700, Junio C Hamano wrote:
Show 64 quoted lines
> Vitaliy Ivanov <vitalivanov@gmail.com> writes:
> 
> > ---
> >>From bff3916939fcd226278a2e983ddc77bb711296e7 Mon Sep 17 00:00:00 2001
> > From: Vitaliy Ivanov <vitalivanov@gmail.com>
> > Date: Tue, 19 Jul 2011 20:07:08 +0300
> > Subject: [PATCH] tests: cleanup binary images usage
> 
> Thanks.
> 
> Drop the above five lines and replace them with a single "-- >8 --" line.
> The lone "---" line is especially harmful as it tells our tools to stop
> reading anything below when finding your commit log message.
> 
> > Images are being shared between tests and this is OK.
> > By this patch I name images independently of tests plus
> > remove unneeded images.
> 
> The point of these test vector files are that they are binary and it is
> secondary that they happen to be images.
> 
> Perhaps like this.
> 
>   Hi, list,
> 
>   Extra and redundant explanation that you could have just let your
>   proposed commit log message speak for itself comes here, if you really
>   need one.
> 
>   -- >8 --
>   tests: cleanup binary test vector files
> 
>   The test4012.png test vector file that was originally used for t4012 to
>   check operations on binary files was later reused in other tests, making
>   it no longer consistent to name it after a specific test. Rename it to more
>   generic "test-binary-1.png".
> 
>   While at it, rename test9200b to "test-binary-2.png" (even though it is
>   only used by t9200).
> 
>   Signed-off-by: Vitaliy Ivanov <vitalivanov@gmail.com>
>   ---
>   <<diffstat and patch here>>
> 
> > Signed-off-by: Vitaliy Ivanov <vitalivanov@gmail.com>
> > ---
> >  t/t3307-notes-man.sh           |    6 +++---
> >  t/t4012-diff-binary.sh         |    2 +-
> >  t/t6023-merge-file.sh          |    2 +-
> >  t/t6027-merge-binary.sh        |    2 +-
> >  t/t9200-git-cvsexportcommit.sh |   14 +++++++-------
> >  t/test-image1.png              |  Bin 0 -> 5660 bytes
> >  t/test-image2.png              |  Bin 0 -> 275 bytes
> >  t/test4012.png                 |  Bin 5660 -> 0 bytes
> >  t/test9200a.png                |  Bin 5660 -> 0 bytes
> >  t/test9200b.png                |  Bin 275 -> 0 bytes
> >  10 files changed, 13 insertions(+), 13 deletions(-)
> >  create mode 100644 t/test-image1.png
> >  create mode 100644 t/test-image2.png
> >  delete mode 100644 t/test4012.png
> >  delete mode 100644 t/test9200a.png
> >  delete mode 100644 t/test9200b.png
> 
> Also have you considered using "format-patch -M" to send this patch?
Thanks Junio for your comments. Sending updated version for this patch.
- Vitaliy
Previous: Junio C HamanoNext: Vitaliy Ivanov
Message 3 of 4 in “tests: cleanup binary images usage”
  1. tests: cleanup binary images usageVitaliy Ivanov, Jul 19, 2011
  2. Junio C HamanoJul 19, 2011
  3. Vitaliy IvanovJul 19, 2011
  4. tests: cleanup binary test vector filesVitaliy Ivanov, Jul 19, 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.