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

Re: [TopGit PATCH] tg-patch: add From/Date: line to header and print to file

From
Petr Baudis <pasky@suse.cz>
Date
Sep 22, 2008, 15:39 UTC
Message-ID
<20080922153938.GP10360@machine.or.cz>
In-Reply-To
<1221818101-14333-2-git-send-email-bert.wesarg@googlemail.com>
On Fri, Sep 19, 2008 at 11:55:01AM +0200, Bert Wesarg wrote:
Show 7 quoted lines
> To make this more similar to git format-patch, I added a 'From' and
> a 'Date:' header and let 'tg patch' print to a file (which is shown as output).
> 
> Regards
> Bert
> 
> Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>

I dislike the anyway completely bogus From line. If you want mbox format, you should call (hypothetical) tg mail. Also, IMHO Date: should be simply always printed at the end of the header, it's distracting if it is higher.

Also, the writing to file is confusing to me. What are you trying to achieve? If you want to export patches, why not use 'tg export' which already has this functionality? To me, 'tg patch' is basically equivalent of 'git show' for the whole branch.

-- 
				Petr "Pasky" Baudis
The next generation of interesting software will be done
on the Macintosh, not the IBM PC.  -- Bill Gates
Previous: Bert WesargNext: Bert Wesarg
Message 3 of 9 in “prev/next/tsort: commands to explore dependencies”
  1. prev/next/tsort: commands to explore dependenciesBert Wesarg, Sep 19, 2008
  2. tg-patch: add From/Date: line to header and print to fileBert Wesarg, Sep 19, 2008
  3. Petr BaudisSep 22, 2008
  4. Bert WesargSep 22, 2008
  5. Petr BaudisSep 22, 2008
  6. Bert WesargSep 22, 2008
  7. Uwe Kleine-KönigSep 22, 2008
  8. Bert WesargSep 22, 2008
  9. Petr BaudisSep 24, 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.