Re: Re: [PATCH 1/3] checkout.c: add strict usage of -- before file_path

2018-05-13 Thread Dannier Castro L
On 13/05/2018 00:03, Duy Nguyen wrote: On Sun, May 13, 2018 at 4:23 AM, Dannier Castro L <dannie...@gmail.com> wrote: For GIT new users, this complicated versatility of could be very confused, also considering that actually the flag '--' is completely useless (added or not, there is n

[PATCH 3/3] doc: update doc for strict usage of -- checkout

2018-05-12 Thread Dannier Castro L
The flag '--' must always be before any file path when command is used. The main documentation about the usage of command is updated to include the strict usage of the flag '--' so that the user can specify file names over branch names. Signed-off-by: Dannier Castro L <dannie...@gmail.

[PATCH 1/3] checkout.c: add strict usage of -- before file_path

2018-05-12 Thread Dannier Castro L
he discard of changes and considering the following names as file paths, otherwise, they are branch names. Signed-off-by: Dannier Castro L <dannie...@gmail.com> --- builtin/checkout.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/builtin/chec

[PATCH 2/3] test: update tests for strict usage of -- checkout

2018-05-12 Thread Dannier Castro L
-open.sh t8006-blame-textconv.sh t9010-svn-fe.sh t8003-blame-corner-cases.sh Signed-off-by: Dannier Castro L <dannie...@gmail.com> --- t/t0021-conversion.sh| 12 ++-- t/t0027-auto-crlf.sh | 4 ++-- t/t1011-read-tree-sparse-checkout.sh | 4 ++-- t