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

Re: [RFC] Applying a graft to a tree and "rippling" the changes through the history

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Nov 6, 2005, 22:43 UTC
Message-ID
<867jblpfcq.fsf@blue.stonehenge.com>
In-Reply-To
<436E85DA.1080904@michonline.com>
>>>>> "Ryan" == Ryan Anderson <ryan@michonline.com> writes:
Ryan> chdir($ARGV[0]);

That's dangerous without an "or-die". Being in the wrong directory before you do a lot of edits is a good way to bust your disk. :)

Ryan> 	my ($commit,@parents) = split /\s+/;

split with no args splits $_ on whitespace, tossing leading whitespace, just in case they ever put whitespace indentation ahead.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Previous: Ryan AndersonNext: Junio C Hamano
Message 2 of 5 in “[RFC] Applying a graft to a tree and "rippling" the changes through the history”
  1. Ryan AndersonNov 6, 2005
  2. Randal L. SchwartzNov 6, 2005
  3. Junio C HamanoNov 7, 2005
  4. Ryan AndersonNov 7, 2005
  5. Matthias UrlichsNov 18, 2005

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.