<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git.c, branch v1.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2006-01-14T00:49:01Z</updated>
<entry>
<title>Exec git programs without using PATH.</title>
<updated>2006-01-14T00:49:01Z</updated>
<author>
<name>Michal Ostrowski</name>
<email>mostrows@watson.ibm.com</email>
</author>
<published>2006-01-11T02:12:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=77cb17e940c806a4cc811bfd66187277b729a1e7'/>
<id>urn:sha1:77cb17e940c806a4cc811bfd66187277b729a1e7</id>
<content type='text'>
The git suite may not be in PATH (and thus programs such as
git-send-pack could not exec git-rev-list).  Thus there is a need for
logic that will locate these programs.  Modifying PATH is not
desirable as it result in behavior differing from the user's
intentions, as we may end up prepending "/usr/bin" to PATH.

- git C programs will use exec*_git_cmd() APIs to exec sub-commands.
- exec*_git_cmd() will execute a git program by searching for it in
  the following directories:
	1. --exec-path (as used by "git")
	2. The GIT_EXEC_PATH environment variable.
	3. $(gitexecdir) as set in Makefile (default value $(bindir)).
- git wrapper will modify PATH as before to enable shell scripts to
  invoke "git-foo" commands.

Ideally, shell scripts should use the git wrapper to become independent
of PATH, and then modifying PATH will not be necessary.

[jc: with minor updates after a brief review.]

Signed-off-by: Michal Ostrowski &lt;mostrows@watson.ibm.com&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git: grok 'help' to mean '--help'.</title>
<updated>2006-01-06T04:28:52Z</updated>
<author>
<name>Andreas Ericsson</name>
<email>exon@op5.se</email>
</author>
<published>2006-01-03T09:53:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=da6bf70ebf7d485e3643ba3569962a4c08e37906'/>
<id>urn:sha1:da6bf70ebf7d485e3643ba3569962a4c08e37906</id>
<content type='text'>
Most other scm's understand it, most users expect it and it's an easy fix.

Signed-off-by: Andreas Ericsson &lt;ae@op5.se&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>\n usage in stderr output</title>
<updated>2005-12-22T07:09:40Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2005-12-15T07:47:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7246ed438c541650c2cd50e4e98b43226f60da0c'/>
<id>urn:sha1:7246ed438c541650c2cd50e4e98b43226f60da0c</id>
<content type='text'>
fprintf and die sometimes have missing/excessive "\n" in their arguments,
correct the strings where I think it would be appropriate.

Signed-off-by: Alex Riesen &lt;raa.lkml@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Make "git help" sort git commands in columns</title>
<updated>2005-12-18T21:53:40Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-12-18T20:41:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=112d0bafd620c0e0f10614a3ba021d4de4fae331'/>
<id>urn:sha1:112d0bafd620c0e0f10614a3ba021d4de4fae331</id>
<content type='text'>
This changes "pretty_print_string_list()" to show the git commands
alphabetically in column order, which is the normal one.

Ie instead of doing

	git commands available in '/home/torvalds/bin'
	----------------------------------------------
	  add                am                 ...
	  applypatch         archimport         ...
	  cat-file           check-ref-format   ...
	...

it does

	git commands available in '/home/torvalds/bin'
	----------------------------------------------
	  add                diff-tree          ...
	  am                 fetch              ...
	  apply              fetch-pack         ...
	...

where each column is sorted.

This is how "ls" sorts things too, and since visually the columns are much
more distinct than the rows, so it _looks_ more sorted.

The "ls" command has a "-x" option that lists entries by lines (the way
git.c used to): if somebody wants to do that, the new print-out logic
could be easily accomodated to that too. Matter of taste and preference, I
guess.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Make "git help" react to window size correctly</title>
<updated>2005-12-18T21:53:33Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-12-18T20:15:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ea77e675e564211513ebedb4f5bdcda482d7fd30'/>
<id>urn:sha1:ea77e675e564211513ebedb4f5bdcda482d7fd30</id>
<content type='text'>
Currently the git "show commands" function will react to the environment
variable COLUMNS, or just default to a width of 80 characters.

That's just soo eighties. Nobody sane sets COLUMNS any more, unless they
need to support some stone-age software from before the age of steam
engines, SIGWINCH and TIOCGWINSZ.

So get with the new century, and use TIOCGWINSZ to get the terminal size.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Clean up compatibility definitions.</title>
<updated>2005-12-05T23:50:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-05T19:54:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4050c0df8ec7043315e2192695de432875239775'/>
<id>urn:sha1:4050c0df8ec7043315e2192695de432875239775</id>
<content type='text'>
This attempts to clean up the way various compatibility
functions are defined and used.

 - A new header file, git-compat-util.h, is introduced.  This
   looks at various NO_XXX and does necessary function name
   replacements, equivalent of -Dstrcasestr=gitstrcasestr in the
   Makefile.

 - Those function name replacements are removed from the Makefile.

 - Common features such as usage(), die(), xmalloc() are moved
   from cache.h to git-compat-util.h; cache.h includes
   git-compat-util.h itself.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git.c: remove excess output for debugging when command is too long.</title>
<updated>2005-12-05T07:19:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-05T05:24:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b270c634b7d3dd197de6d155770fd7b044d76c5c'/>
<id>urn:sha1:b270c634b7d3dd197de6d155770fd7b044d76c5c</id>
<content type='text'>
When the given command name was too long, we exited with a
message with the number of bytes of the final command name
inside parentheses, without saying what that number is.  It was
only meant as a debugging aid while development, so remove it.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git.c: two fixes, gitsetenv type and off-by-one error.</title>
<updated>2005-12-04T22:59:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-04T22:59:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9a79c5a8b4e280601bcbeeed22e1e4968d06c10e'/>
<id>urn:sha1:9a79c5a8b4e280601bcbeeed22e1e4968d06c10e</id>
<content type='text'>
gitsetenv as implemented in compat/setenv.c takes two const char*
and int; match that.

Also fix an incorrect attempt in prepend_to_path() to
NUL-terminate the string which stuffed the NUL character at one
past the end of allocation, and was not needed to begin with (we
copy the old_path string including the NUL which terminates it).

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Add compat/setenv.c, use in git.c.</title>
<updated>2005-12-04T06:25:25Z</updated>
<author>
<name>Jason Riedy</name>
<email>ejr@EECS.Berkeley.EDU</email>
</author>
<published>2005-12-02T23:08:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e40b61fb6bd2e0ed2dc4799096fcf4c828c28d6d'/>
<id>urn:sha1:e40b61fb6bd2e0ed2dc4799096fcf4c828c28d6d</id>
<content type='text'>
There is no setenv() in Solaris 5.8.  The trivial calls to
setenv() were replaced by putenv() in a much earlier patch,
but setenv() was used again in git.c.  This patch just adds
a compat/setenv.c.

The rule for building git$(X) also needs to include compat.
objects and compiler flags.  Those are now in makefile vars
COMPAT_OBJS and COMPAT_CFLAGS.

Signed-off-by: E. Jason Riedy &lt;ejr@cs.berkeley.edu&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git wrapper: more careful argument stuffing</title>
<updated>2005-12-02T01:06:37Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2005-12-01T12:48:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=10b15b86f545e081aebba8783ad9e9acf6bf0d98'/>
<id>urn:sha1:10b15b86f545e081aebba8783ad9e9acf6bf0d98</id>
<content type='text'>
 - Use stderr for error output
 - Build git_command more careful
 - ENOENT is good enough for check of failed exec to show usage, no
   access() check needed

[jc: Originally from Alex Riesen with inputs from Sven
 Verdoolaege mixed in.]

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
