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

Re: GSOC idea: build in scripts and cleanups

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Mar 26, 2011, 02:14 UTC
Message-ID
<20110326021435.GA2352@elie>
In-Reply-To
<201103260141.20798.robert.david.public@gmail.com>

(+cc: various relevant people for ideas) Hi,

Robert David wrote:
> I'm long time user of git and very interested in development participation. 
Welcome!
Show 6 quoted lines
> Having passing your GSOC ideas, keep my eyes on scripts building in and also 
> git add -p cleanups. Because I like this kind of work. 
>
> Because there are more thinks to do in the cleanup and rewrite task, I would 
> like to ask if there is some priority in these tasks? To let me focus on the 
> most important parts. 
Looking at the git-add--interactive.perl source, I see:
	process_args();
	refresh();
	if ($patch_mode) {
		patch_update_cmd();
	}
[...]
and patch_update_cmd looks like
	my @all_mods = list_modified($patch_mode_flavour{FILTER});
	my @mods = grep { !($_->{BINARY}) } @all_mods;
[...]
	if ($patch_mode) {
		@them = @mods;
	}
[...]
	for (@them) {
		return 0 if patch_update_file($_->{VALUE});
	}

patch_update_file loops over hunks in the diff for that file and acts on them one at a time. So a natural step might be to eliminate this outer "for (@them)" loop, so the person at the keyboard could decide to go back to a previous file or list all files and choose one.

Others may have more to say. If there are things you wished "git checkout --patch" was able to do, that can also help.

> I was also thinking if there isn't PERL a better choice in rewriting shell 
> scripts, due to planed porting (android, etc). Better than C. But I don't know 
> android and other platform so much, so thats why I'm asking.

So far (on Windows and various Unixen) it seems that C is much easier to work with as far as porting goes.[2]

Jonathan

[1] Android is an odd example because the platform uses Java heavily (so JGit might be a better fit for it). Perhaps the wish for android support should have been put on the Eclipse ideas page[2] and a link added to git's; I dunno. [2] http://wiki.eclipse.org/Google_Summer_of_Code_2011_Ideas#Ideas_submission

Previous: Robert DavidNext: Jeff King
Message 2 of 20 in “GSOC idea: build in scripts and cleanups”
  1. Robert DavidMar 26, 2011
  2. Jonathan NiederMar 26, 2011
  3. Jeff KingMar 26, 2011
  4. Robert DavidMar 28, 2011
  5. Jeff KingMar 28, 2011
  6. Thomas RastMar 30, 2011
  7. Robert DavidMar 30, 2011
  8. Robert DavidApr 3, 2011
  9. Robert DavidApr 4, 2011
  10. Junio C HamanoApr 4, 2011
  11. Robert DavidApr 4, 2011
  12. Jeff KingApr 5, 2011
  13. Junio C HamanoApr 5, 2011
  14. Jeff KingApr 5, 2011
  15. Robert DavidApr 5, 2011
  16. Robert DavidApr 7, 2011
  17. Junio C HamanoApr 7, 2011
  18. Robert DavidApr 8, 2011
  19. Jonathan NiederApr 11, 2011
  20. Robert DavidApr 17, 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.