Thread (16 messages) flat view 16 messages, 8 authors, 2016-06-15

Re: Global .git directory

From: Gerhard Wiesinger <hidden>
Date: 2016-06-15 22:48:43

On Tue, 27 Apr 2010, Erik Faye-Lund wrote:
On Tue, Apr 27, 2010 at 10:06 PM, Gerhard Wiesinger [off-list ref] wrote:
quoted
On Tue, 27 Apr 2010, Thomas Rast wrote:
quoted
(In other words, please convince us that this is actually worth
having.)
Ok, rather than convincing I've written a (fast) patch which works for me
:-)

Any comments? Any (further) changes needed? Will you include it in main git?
Please see Documentation/SubmittingPatches. It's difficult to comment
on a non-inlined patch.
Patch done on top of HEAD.
git format-patch -M origin/master
0001-Added-global-git-directory-when-environment-variable.patch
0002-Added-global-git-directory-when-environment-variable.patch
0003-Updated-documentation-for-submitting-patches.patch
Attached.

BTW: The tutorial on http://git-scm.com/ is IHMO wrong:
git --version
git version 1.6.2.5
git commit -m 'Explain what I changed'
=>
git commit -a -m 'Explain what I changed'
=> Otherwise changed files are not committed, only added ones.
=> Therefore that are 2 commit ...

BTW2:
Why is it necessary to do:
# Displays only changed files
git diff
# Displays only added files
git diff --cached

I would like to have a full diff of my changes:
git diff -a
(or better "git diff -a" should be the default behaviour, I think 
that's very confusing for new users)

Ciao,
Gerhard

--
http://www.wiesinger.com/

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help