Staging
v0.5.2
https://github.com/git/git
Revision 7bd9641df5b7cca91b21bfdc587962c59700786c authored by Junio C Hamano on 08 November 2006, 00:20:02 UTC, committed by Junio C Hamano on 08 November 2006, 00:24:37 UTC
With this,

	git pickaxe -L '/--progress/,+20' v1.4.0 -- pack-objects.c

gives you 20 lines starting from the first occurrence of
'--progress' in pack-objects, digging from v1.4.0 version.

You can also say

	git pickaxe -L '/--progress/,-5' v1.4.0 -- pack-objects.c

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 931233b
Raw File
Tip revision: 7bd9641df5b7cca91b21bfdc587962c59700786c authored by Junio C Hamano on 08 November 2006, 00:20:02 UTC
git-pickaxe: allow "-L <something>,+N"
Tip revision: 7bd9641
run-command.h
#ifndef RUN_COMMAND_H
#define RUN_COMMAND_H

#define MAX_RUN_COMMAND_ARGS 256
enum {
	ERR_RUN_COMMAND_FORK = 10000,
	ERR_RUN_COMMAND_EXEC,
	ERR_RUN_COMMAND_WAITPID,
	ERR_RUN_COMMAND_WAITPID_WRONG_PID,
	ERR_RUN_COMMAND_WAITPID_SIGNAL,
	ERR_RUN_COMMAND_WAITPID_NOEXIT,
};

#define RUN_COMMAND_NO_STDIO 1
#define RUN_GIT_CMD	     2	/*If this is to be git sub-command */
int run_command_v_opt(int argc, const char **argv, int opt);
int run_command_v(int argc, const char **argv);
int run_command(const char *cmd, ...);

#endif
back to top