Re: [PATCH 6/7] t5541: move run_with_cmdline_limit to test-lib.sh

2015-03-12 Thread Eric Sunshine
On Fri, Mar 13, 2015 at 12:53 AM, Jeff King wrote: > We use this to test http pushing with a restricted > commandline. Other scripts (like t5551, which does http > fetching) will want to use it, too. > > Signed-off-by: Jeff King > --- > As we discussed a while ago, this is the exact same code tha

[Documentation] Submitting Patches

2015-03-12 Thread Cody Taylor
Apologies for the poorly formatted e-mail. I realized after I sent the message that the `git send-mail` command was an option. I was trying to use python to modify the e-mail before sending it, and the three different "From" fields got mumbled. Anyway, this brings up the point that `git send-email

Re: [PATCH 1/7] upload-pack: fix transfer.hiderefs over smart-http

2015-03-12 Thread Junio C Hamano
Jeff King writes: > When upload-pack advertises the refs (either for a normal, > non-stateless request, or for the initial contact in a > stateless one), we call for_each_ref with the send_ref > function as its callback. send_ref, in turn, calls > mark_our_ref, which checks whether the ref is hid

Re: [PATCH v2] git prompt: Use toplevel to find untracked files.

2015-03-12 Thread Junio C Hamano
Cody A Taylor writes: > From c861d5cb401110ce7d86b76c1eaa8e89e80f484e Mon Sep 17 00:00:00 2001 > From: Cody A Taylor > Date: Thu, 12 Mar 2015 20:36:44 -0400 > Subject: [PATCH] git prompt: Use toplevel to find untracked files. All of the above four lines are unwanted in the e-mail body. * The

Re: [PATCH v3 1/4] git-credential-store: support multiple credential files

2015-03-12 Thread Jeff King
On Wed, Mar 11, 2015 at 02:49:10PM +0800, Paul Tan wrote: > Previously, git-credential-store only supported storing credentials in a > single file: ~/.git-credentials. In order to support the XDG base > directory specification[1], git-credential-store needs to be able to > lookup and erase credent

Re: [PATCH v2 01/10] Define a structure for object IDs.

2015-03-12 Thread Junio C Hamano
Duy Nguyen writes: >> You mean "if it came in format, convert it down to >> until the last second that it is needed (e.g. need to put >> that in a tree object in order to compute the object name of the >> containing tree object)"? > > I picked my words poorly. It should be > instead of the _by

Re: [PATCH 0/7] fix transfer.hiderefs with smart http

2015-03-12 Thread Duy Nguyen
On Fri, Mar 13, 2015 at 11:59 AM, Jeff King wrote: > On Fri, Mar 13, 2015 at 12:41:01AM -0400, Jeff King wrote: > >> I'm experimenting with using transfer.hiderefs on a server, and it's >> rather easy to cause a git client to hang when fetching from such a repo >> over smart http. Details are in t

Re: [PATCH 0/7] fix transfer.hiderefs with smart http

2015-03-12 Thread Jeff King
On Fri, Mar 13, 2015 at 12:41:01AM -0400, Jeff King wrote: > I'm experimenting with using transfer.hiderefs on a server, and it's > rather easy to cause a git client to hang when fetching from such a repo > over smart http. Details are in the first patch. A note on this hang. What happens is that

[PATCH 7/7] t5551: make EXPENSIVE test cheaper

2015-03-12 Thread Jeff King
We create 50,000 tags to check that we don't overflow the command-line of fetch-pack. But by using run_with_cmdline_limit, we can get the same effect with a much smaller number of tags. This makes the test fast enough that we can drop the EXPENSIVE prereq, which means people will actually run it.

[PATCH 6/7] t5541: move run_with_cmdline_limit to test-lib.sh

2015-03-12 Thread Jeff King
We use this to test http pushing with a restricted commandline. Other scripts (like t5551, which does http fetching) will want to use it, too. Signed-off-by: Jeff King --- As we discussed a while ago, this is the exact same code that run_with_limited_stack uses in t7004. However, I think they are

[PATCH 5/7] t: pass GIT_TRACE through Apache

2015-03-12 Thread Jeff King
Apache removes GIT_TRACE from the environment before running git-http-backend. This can make it hard to debug the server side of an http session. Let's let it through. Signed-off-by: Jeff King --- t/lib-httpd.sh | 1 + t/lib-httpd/apache.conf | 1 + 2 files changed, 2 insertions(+) dif

[PATCH 4/7] t: redirect stderr GIT_TRACE to descriptor 4

2015-03-12 Thread Jeff King
If you run a test script like: GIT_TRACE=1 ./t0061-run-command.sh you may get test failures, because some tests capture and check the stderr output from git commands (and with GIT_TRACE set to 1, the trace output will be included there). When we see GIT_TRACE set like this, we print a warning

[PATCH 3/7] t: translate SIGINT to an exit

2015-03-12 Thread Jeff King
Right now if a test script receives SIGINT (e.g., because a test was hanging and the user hit ^C), the shell exits immediately. This can be annoying if the test script did any global setup, like starting apache or git-daemon, as it will not have an opportunity to clean up after itself. A subsequent

[PATCH 1/7] upload-pack: fix transfer.hiderefs over smart-http

2015-03-12 Thread Jeff King
When upload-pack advertises the refs (either for a normal, non-stateless request, or for the initial contact in a stateless one), we call for_each_ref with the send_ref function as its callback. send_ref, in turn, calls mark_our_ref, which checks whether the ref is hidden, and sets OUR_REF or HIDDE

[PATCH 2/7] upload-pack: do not check NULL return of lookup_unknown_object

2015-03-12 Thread Jeff King
We check whether the return value of lookup_unknown_object is NULL, but some code paths dereference it before our check. This turns out not to be capable of causing a segfault, though. The lookup_unknown_object function will never return NULL, since the whole point is to allocate an object struct i

[PATCH 0/7] fix transfer.hiderefs with smart http

2015-03-12 Thread Jeff King
I'm experimenting with using transfer.hiderefs on a server, and it's rather easy to cause a git client to hang when fetching from such a repo over smart http. Details are in the first patch. There are 7 patches here, but the entirety of the fix is contained in the first one. The rest are cleanups

[PATCH v2] git prompt: Use toplevel to find untracked files.

2015-03-12 Thread Cody A Taylor
>From c861d5cb401110ce7d86b76c1eaa8e89e80f484e Mon Sep 17 00:00:00 2001 From: Cody A Taylor Date: Thu, 12 Mar 2015 20:36:44 -0400 Subject: [PATCH] git prompt: Use toplevel to find untracked files. The __git_ps1() prompt function would not show an untracked state when the current working directory

Re:

2015-03-12 Thread Duy Nguyen
On Fri, Mar 13, 2015 at 8:34 AM, wrote: > From 3e4e22e93bf07355b40ba0abcb3a15c4941cfee7 Mon Sep 17 00:00:00 2001 > From: Cody A Taylor > Date: Thu, 12 Mar 2015 20:36:44 -0400 > Subject: [PATCH] git prompt: Use toplevel to find untracked files. > > The __git_ps1() prompt function would not show a

Watch DVD movies on Mac Mini via Plex/Home theatre

2015-03-12 Thread Velemoochi
Watch DVD movies on Mac Mini via Plex/Home theatre This article tells you how to convert DVD collection to MKV/MP4 on Mac for watching on Mac Mini via Plex server and Home theatre and backup them onto NAS sever. While enjoying broadcast and Internet TV on Mac with ease, have you ever thought o

[PATCH] git prompt: Use toplevel to find untracked files.

2015-03-12 Thread Cody A Taylor
>From 3e4e22e93bf07355b40ba0abcb3a15c4941cfee7 Mon Sep 17 00:00:00 2001 From: Cody A Taylor Date: Thu, 12 Mar 2015 20:36:44 -0400 Subject: [PATCH] git prompt: Use toplevel to find untracked files. The __git_ps1() prompt function would not show an untracked state when the current working directory

[no subject]

2015-03-12 Thread cody . taylor
>From 3e4e22e93bf07355b40ba0abcb3a15c4941cfee7 Mon Sep 17 00:00:00 2001 From: Cody A Taylor Date: Thu, 12 Mar 2015 20:36:44 -0400 Subject: [PATCH] git prompt: Use toplevel to find untracked files. The __git_ps1() prompt function would not show an untracked state when the current working directory

Re: [PATCH v2 01/10] Define a structure for object IDs.

2015-03-12 Thread Duy Nguyen
On Fri, Mar 13, 2015 at 1:24 AM, Junio C Hamano wrote: > Duy Nguyen writes: > >> This may or may not fall into the "mix different hash functions" >> category. In pack files version 4, trees are encoded to point to other >> trees or blobs by a (pack, offset) tuple. It would be great if the new >>

Re: git-svn: Fetch svn branches only and have git recognize them as branches?

2015-03-12 Thread Brian Koehmstedt
Junio C Hamano pobox.com> writes: > > git svn init --minimize-url \ > --trunk http://repository-root/foo/trunk \ > --branches http://repository-root/foo/branches \ > --tags http://repository-root/foo/tags > > And this is where the new --minimize-url command-line switch

Re: git-svn: Fetch svn branches only and have git recognize them as branches?

2015-03-12 Thread Eric Wong
Brian Koehmstedt wrote: > My latest failed attempt was this: > > [svn-remote "svn"] > url = http://abc.com/repo/branches > fetch = :refs/remotes/svn/branches > branches = *:refs/remotes/svn/* > > git svn fetch svn > This fetched all the branch directories as one branch.

Re: git-svn: Fetch svn branches only and have git recognize them as branches?

2015-03-12 Thread Junio C Hamano
Brian Koehmstedt writes: > I'm trying deal with a project where the server is disallowing access to > the root URL on the subversion server. > > i.e., > Doesn't allow access: http://abc.com/repo > Does allow access: http://abc.com/repo/trunk, http://abc.com/repo/branches, > http://abc.com/repo/ta

Re: Promoting Git developers

2015-03-12 Thread Junio C Hamano
Jeff King writes: > Seeing my name in "shortlog" was nice, but not that exciting. I > submitted a patch, it was taken, and of course it ends up in any > automated lists of authors. What was much more rewarding was being > mentioned specifically in "A note from the maintainer" as a helpful > perso

Re: Promoting Git developers

2015-03-12 Thread Jeff King
On Thu, Mar 12, 2015 at 03:36:46PM -0700, Junio C Hamano wrote: > > I hadn't thought about it when I originally suggested this, but of > > course "new" is not strictly meaningful in a world with branches. If you > > contribute a bugfix on top of v2.0.0 that goes to "maint", do you get to > > be ne

Re: Promoting Git developers

2015-03-12 Thread Jeff King
On Wed, Mar 11, 2015 at 10:05:43PM -0700, Junio C Hamano wrote: > Jeff King writes: > > > I spent many years as a "type C" contributor, and I remember how nice it > > was to see my name mentioned occasionally as a useful person. > > I guess that everybody is different ;-) > > After throwing a

Re: Promoting Git developers

2015-03-12 Thread Junio C Hamano
Jeff King writes: > It is comprised of 41 non-merge commits... > > is fine. Thanks; very much appreciated. >> New contributors who made this release possible are as follows. >> Welcome to the Git development community! >> >> Aleksander Boruch-Gruszecki, Aleksey Vasenev, Patrick Steinhardt,

Re: Promoting Git developers

2015-03-12 Thread Jeff King
On Wed, Mar 11, 2015 at 02:28:03PM -0700, Junio C Hamano wrote: > Jeff King writes: > > > Or something along those lines. The wording and indentation of the > > message could probably use tweaking. And there is a bash-ism in the > > script. :) > > OK, I've updated the Announce script on the 'to

git-svn: Fetch svn branches only and have git recognize them as branches?

2015-03-12 Thread Brian Koehmstedt
I'm trying deal with a project where the server is disallowing access to the root URL on the subversion server. i.e., Doesn't allow access: http://abc.com/repo Does allow access: http://abc.com/repo/trunk, http://abc.com/repo/branches, http://abc.com/repo/tags I know I can git-svn to clone each s

Re: [PATCH 0/2] [git-gui] "Open existing repository" with submodules

2015-03-12 Thread Pat Thoyts
Remi Rampin writes: >I'm resubmitting this patch series, hopefully someone takes notice >this time. > >The GUI cannot currently open a submodule because it fails to recognize >the git link file (regular .git file with content "gitdir: ..."). > >Previous thread: >http://thread.gmane.org/gmane.comp

Re: [PATCH 04/16] list-files: add tag to each entry, filter duplicate tags

2015-03-12 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > All entry strings start with two-letter tag and a space. If all > entries have the same tags, tags are not displayed. > > The outcome before and after this patch is the same. But it will be > useful in future when there are more than one type of entry. > > Signed-o

Re: [PATCH 03/16] list-files: show paths relative to cwd

2015-03-12 Thread Junio C Hamano
Junio C Hamano writes: >> static struct pathspec pathspec; >> static const char *prefix; >> @@ -22,7 +23,7 @@ static void add_one(struct string_list *result, const char >> *name) >> struct strbuf sb = STRBUF_INIT; >> struct string_list_item *item; >> >> -strbuf_addstr(&sb, name

Re: [PATCH 03/16] list-files: show paths relative to cwd

2015-03-12 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Signed-off-by: Nguyễn Thái Ngọc Duy > --- > builtin/list-files.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/builtin/list-files.c b/builtin/list-files.c > index b99f2b7..c444a53 100644 > --- a/builtin/list-files.c > +++ b/builtin/li

Re: [PATCH 02/16] list-files: make :(glob) pathspec default

2015-03-12 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Signed-off-by: Nguyễn Thái Ngọc Duy > --- > builtin/list-files.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/builtin/list-files.c b/builtin/list-files.c > index ac33f13..b99f2b7 100644 > --- a/builtin/list-files.c > +++ b/builtin/list-files.c > @@

Re: [PATCH 01/16] list-files: command skeleton

2015-03-12 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > list-files is supposed to be the user friendly version of ls-files, or > an alternative to git-status. Nothing fancy in this patch yet. The result of applying this patch alone will not give us anything fancy, but the patch itself is interesting ;-) > +static void

Re: [PATCH] tag: fix some mis-organized options in "-h" listing

2015-03-12 Thread Junio C Hamano
Thanks. Even though this dates back to d96e3c15 (tag: add --column, 2012-04-13), I do not think it is worth backporting it to v1.7.x series, so I'll queue the fix for a bit newer maintenance track, perhaps for v2.1.x and above. -- To unsubscribe from this list: send the line "unsubscribe git" in

Re: [PATCH v2 01/10] Define a structure for object IDs.

2015-03-12 Thread Junio C Hamano
Junio C Hamano writes: > Duy Nguyen writes: > >> This may or may not fall into the "mix different hash functions" >> category. In pack files version 4, trees are encoded to point to other >> trees or blobs by a (pack, offset) tuple. It would be great if the new >> object_id could support carryin

Re: Promoting Git developers

2015-03-12 Thread Junio C Hamano
Fredrik Gustafsson writes: > On Wed, Mar 11, 2015 at 09:53:22PM -0700, Junio C Hamano wrote: >> I'd first suggest to employ "icase" to unify *-By and *-by. Perhaps >> we would want a recommended list somewhere in SubmittingPatches to >> discourage people from getting too creative? > > There's al

Re: [PATCH] git-completion: add stashes for gitk

2015-03-12 Thread Junio C Hamano
Junio C Hamano writes: > ... Also, when you have no ref that is named es-tee something, > "gitk st" completes to "gitk stash@{", as if the problem the > change tries to cure is "it is unnecessarily hard to type at-mark > open-brace". > > I do not have to be the target audience, though. Maybe th

Re: [PATCH v2 01/10] Define a structure for object IDs.

2015-03-12 Thread Junio C Hamano
Duy Nguyen writes: > This may or may not fall into the "mix different hash functions" > category. In pack files version 4, trees are encoded to point to other > trees or blobs by a (pack, offset) tuple. It would be great if the new > object_id could support carrying this kind of object id around

[PATCH] tag: fix some mis-organized options in "-h" listing

2015-03-12 Thread Jeff King
Running "git tag -h" currently prints: [...] Tag creation options [...] --column[=

Re: [PATCH] git-completion: add stashes for gitk

2015-03-12 Thread Junio C Hamano
Sveinung Kvilhaugsvik writes: > Auto complete stashed modifications for gitk. This makes them easier to > discover and faster to view. > > Signed-off-by: Sveinung Kvilhaugsvik > --- > contrib/completion/git-completion.bash | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/contrib/compl

Re: [PATCH v3] remote-curl: fall back to Basic auth if Negotiate fails

2015-03-12 Thread Dan Langille (dalangil)
> On Mar 11, 2015, at 5:59 PM, brian m. carlson > wrote: > > On Wed, Mar 11, 2015 at 07:33:05PM +, Dan Langille (dalangil) wrote: >>> On Mar 10, 2015, at 6:29 PM, brian m. carlson >>> wrote: >>> Does it work with a ticket if you specify a username, as in the >>> following URL? >>> https://

Re: What's cooking in git.git (Mar 2015, #04; Wed, 11)

2015-03-12 Thread Eric Sunshine
On Wed, Mar 11, 2015 at 8:33 PM, Junio C Hamano wrote: > * nd/list-files (2015-02-09) 21 commits > - t3080: tests for git-list-files > - list-files: -M aka diff-cached > - list-files -F: show submodules with the new indicator '&' > - list-files: add -F/--classify > - list-files: show director

Re: [PATCH v2 01/10] Define a structure for object IDs.

2015-03-12 Thread Duy Nguyen
On Thu, Mar 12, 2015 at 5:46 PM, brian m. carlson wrote: > On Thu, Mar 12, 2015 at 11:28:10AM +0100, Michael Haggerty wrote: >> >> On 03/12/2015 01:26 AM, Junio C Hamano wrote: >>> >>> And that would break the abstraction effort if you start calling the >>> field with a name that is specific to th

Re: [PATCH v2 01/10] Define a structure for object IDs.

2015-03-12 Thread brian m. carlson
On Thu, Mar 12, 2015 at 11:28:10AM +0100, Michael Haggerty wrote: On 03/12/2015 01:26 AM, Junio C Hamano wrote: And that would break the abstraction effort if you start calling the field with a name that is specific to the underlying hash function. The caller has to change o->sha1 to o->sha256 i

Re: [PATCH v2 01/10] Define a structure for object IDs.

2015-03-12 Thread Michael Haggerty
On 03/12/2015 01:26 AM, Junio C Hamano wrote: > "brian m. carlson" writes: > >> Michael Haggerty recommended that I call the structure element sha1 >> instead of oid in case we want to turn this into a union if we decide to >> go the additional hash route. > > I'd advise against it. > > As I wr

Re: [PATCH v2 00/10] Use a structure for object IDs.

2015-03-12 Thread Junio C Hamano
Michael Haggerty writes: > I think this is a really interesting project and I hope that it works out. Count me in ;-) > In my opinion, the biggest risk (aside from the sheer amount of work > required) is the issue that was brought up on the mailing list when you > submitted v1 [1]: Converting a

Re: [JFF] "-" and "@{-1}" on various programs

2015-03-12 Thread Junio C Hamano
Michael J Gruber writes: > Junio C Hamano venit, vidit, dixit 10.03.2015 21:20: >> JFF stands for just for fun. >> ... >> What does not work are what needs further tweaking in revision.c >> parser. "git checkout master && git checkout next && git log -.." >> should show what next has on top of m

Re: [PATCH v3 3/4] docs/git-credential-store: document XDG file and precedence

2015-03-12 Thread Paul Tan
On Wed, Mar 11, 2015 at 3:47 PM, Eric Sunshine wrote: > On Wed, Mar 11, 2015 at 2:49 AM, Paul Tan wrote: >> + >> +If not set explicitly with '--file', there are two files where >> +git-credential-store will search for credentials in order of precedence: >> + >> +~/.git-credentials:: >> + Us

Re: [PATCH v3] remote-curl: fall back to Basic auth if Negotiate fails

2015-03-12 Thread Dan Langille (dalangil)
> On Mar 10, 2015, at 6:29 PM, brian m. carlson > wrote: > > On Tue, Mar 10, 2015 at 06:05:46PM +, Dan Langille (dalangil) wrote: >>> We have made progress I think. >>> >>> With stock git: >>> >>> tl;dr: 1 - with a ticket, you get prompted, but hitting ENTER succeeds. >>> 2 - without

Re: [PATCH v3 4/4] t0302: test credential-store support for XDG_CONFIG_HOME

2015-03-12 Thread Paul Tan
Hi, Thanks for taking the time to write such a detailed review and catching all of my careless mistakes. On Wed, Mar 11, 2015 at 4:40 PM, Eric Sunshine wrote: > On Wed, Mar 11, 2015 at 2:49 AM, Paul Tan wrote: >> t0302 now tests git-credential-store's support for the XDG user-specific >> config

Re: [PATCH v2 01/10] Define a structure for object IDs.

2015-03-12 Thread brian m. carlson
On Wed, Mar 11, 2015 at 05:26:56PM -0700, Junio C Hamano wrote: "brian m. carlson" writes: Michael Haggerty recommended that I call the structure element sha1 instead of oid in case we want to turn this into a union if we decide to go the additional hash route. I'd advise against it. Yeah,

Re: Surprising interaction of "binary" and "eol" gitattributes

2015-03-12 Thread Torsten Bögershausen
On 10.03.15 20:25, Michael Haggerty wrote: > On 03/06/2015 10:30 PM, Torsten Bögershausen wrote: >> >>> Oops, I misunderstood an internal bug report. In seems that it is the >>> following scenario that is incorrect: >>> >>> *.png text=auto eol=crlf >> Hm, I don't know if we support this combina

Re: Promoting Git developers

2015-03-12 Thread Fredrik Gustafsson
On Wed, Mar 11, 2015 at 09:53:22PM -0700, Junio C Hamano wrote: > I'd first suggest to employ "icase" to unify *-By and *-by. Perhaps > we would want a recommended list somewhere in SubmittingPatches to > discourage people from getting too creative? There's already such list in SubmittingPatches,

Re: [PATCH v3] remote-curl: fall back to Basic auth if Negotiate fails

2015-03-12 Thread Dan Langille (dalangil)
> On Feb 25, 2015, at 3:59 PM, Dan Langille (dalangil) > wrote: > >> On Feb 24, 2015, at 4:03 PM, Dan Langille (dalangil) >> wrote: >> >>> On Feb 19, 2015, at 3:35 PM, brian m. carlson >>> wrote: >>> >>> On Wed, Feb 18, 2015 at 04:17:46PM +, Dan Langille (dalangil) wrote: I just b

Re: [PATCH v3 2/2] Added tests for reset -

2015-03-12 Thread Eric Sunshine
On Tue, Mar 10, 2015 at 1:52 PM, Sudhanshu Shekhar wrote: > On Tue, Mar 10, 2015 at 6:56 PM, Matthieu Moy > wrote: >> Sudhanshu Shekhar writes: >>> +test_expect_success 'reset - in the presence of file named - with previous >>> branch' ' >>> + echo "Unstaged changes after reset:" >expect &&

Re: [PATCH v2 04/10] archive.c: convert to use struct object_id

2015-03-12 Thread Michael Haggerty
On 03/08/2015 12:23 AM, brian m. carlson wrote: > Convert a hard-coded 20 as well. > > Signed-off-by: brian m. carlson > --- > archive.c | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/archive.c b/archive.c > index 96057ed..46d9025 100644 > --- a/arch

Re: [PATCHv2 0/2] log decorations for HEAD

2015-03-12 Thread Junio C Hamano
Michael J Gruber writes: > So it didn't take too long to convince me after all :) > > Here comes Junio's version, preceded by a cleanup of the color > setting and resetting for decorations. > > Junio C Hamano (1): > log: decorate HEAD with branch name > > Michael J Gruber (1): > log-tree: pro

Webadmin‏ Email felhasználói;

2015-03-12 Thread Webadmin‏ Email
-- A postaláda korlátozza, kérjük, kattintson ide prekrocila http://mailhdjfuw.jigsy.com/ Ellen?rizze a elektronikus levél köszönet Rendszergazda E-mail System. Köszönjük az együttm?ködést! Levél a Web Team @ 2014 -- To unsubscribe from this list: send the line "unsubscribe git" in the body o

[v2 PATCH 2/2] reset: add tests for git reset -

2015-03-12 Thread Sundararajan R
The failure case which occurs on teaching git is taught the '-' shorthand is when there exists no branch pointed to by '@{-1}'. The ambiguous cases occur when there exist files named '-' or '@{-1}' in the work tree. These are also treated as failure cases but here the user is given advice as to h