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

Re: git-walkthrough-add script

From
Pedro Melo <melo@simplicidade.org>
Date
Jan 5, 2008, 00:17 UTC
Message-ID
<8666B7CA-D47F-40A0-88A2-3756C0663296@simplicidade.org>
In-Reply-To
<1199491057-sup-5588@south>
Hi,
On Jan 5, 2008, at 12:02 AM, William Morgan wrote:
Show 11 quoted lines
> Excerpts from Pedro Melo's message of Fri Jan 04 15:26:41 -0800 2008:
>> You script asks me to add all the changes in the same file at once.
>
> It shouldn't. The whole point is to walk through and allow  
> selection on
> a per-hunk basis.
>
> Maybe I'm parsing the output of git diff incorrectly and not  
> picking up
> hunk boundaries? Would you mind sending the output of a git diff that
> results in this behavior?
I used a new git repo, just to test your script.
The diff is:
------ snip
diff --git a/a b/a
index b6b8cab..456bb2d 100644
--- a/a
+++ b/a
@@ -1,4 +1,5 @@
  asasas
+****
  assas
  assas
  asas
@@ -37,6 +38,7 @@ asasas
  assas
  assas
  asas
+=fsdfsdfsadfasdfsad=

  asasas
  assas
@@ -46,5 +48,6 @@ asas
  asasas
  assas
  assas
+asdasdasdasda=DASD=AS=DA=SD=
  asas

------ snip

Best regards
-- 
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo@simplicidade.org
Use XMPP!
Previous: William MorganNext: Miklos Vajna
Message 13 of 16 in “git-walkthrough-add script”
  1. William MorganJan 4, 2008
  2. Jeff KingJan 4, 2008
  3. William MorganJan 4, 2008
  4. Jeff KingJan 4, 2008
  5. William MorganJan 5, 2008
  6. Junio C HamanoJan 5, 2008
  7. Junio C HamanoJan 5, 2008
  8. William MorganJan 5, 2008
  9. Pedro MeloJan 5, 2008
  10. Pedro MeloJan 4, 2008
  11. Junio C HamanoJan 4, 2008
  12. William MorganJan 5, 2008
  13. Pedro MeloJan 5, 2008
  14. Miklos VajnaJan 5, 2008
  15. William MorganJan 5, 2008
  16. Jeff KingJan 5, 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.