[PATCH 21/21] t3080: tests for git-list-files

2015-02-08 Thread Nguyễn Thái Ngọc Duy
100755 index 000..01b9662 --- /dev/null +++ b/t/t3080-list-files.sh @@ -0,0 +1,134 @@ +#!/bin/sh + +test_description='git list-files test' + +. ./test-lib.sh + +test_expect_success 'setup' ' + mkdir dir && + touch file dir/file && +

Re: [PATCH 21/21] t3080: tests for git-list-files

2015-01-28 Thread Duy Nguyen
On Wed, Jan 28, 2015 at 11:44 AM, Michael Blume wrote: > Test 3 is failing on my mac: > > expecting success: > test_config color.ls.file red && > test_config color.ls.directory green && > test_config color.ls.submodule yellow && > git li

Re: [PATCH 21/21] t3080: tests for git-list-files

2015-01-28 Thread Junio C Hamano
Michael Blume writes: > Test 3 is failing on my mac: > > expecting success: > test_config color.ls.file red && > test_config color.ls.directory green && > test_config color.ls.submodule yellow && > git list-files --color=always >actual &

Re: [PATCH 21/21] t3080: tests for git-list-files

2015-01-28 Thread Michael Blume
gt;> test_config color.ls.submodule yellow && >> git list-files --color=always >actual && >> test_cmp "$TEST_DIRECTORY"/t3080/color_ls actual >> >> --- /Users/michael.blume/workspace/git/t/t3080/color_ls 2015-01-28 >> 04:40:23.000

Re: [PATCH 21/21] t3080: tests for git-list-files

2015-01-27 Thread Michael Blume
Test 3 is failing on my mac: expecting success: test_config color.ls.file red && test_config color.ls.directory green && test_config color.ls.submodule yellow && git list-files --color=always >actual && test_cmp "$TEST_DIRECTORY"/t3080/color_ls act

Re: [PATCH 21/21] t3080: tests for git-list-files

2015-01-25 Thread Eric Sunshine
_expect_success 'no dups' ' > + echo dirty >>file && To leave a clean slate for subsequent tests, would it make sense to restore 'file' to a clean state via test_when_finished()? > + git list-files -m file >actual && > + echo

[PATCH 21/21] t3080: tests for git-list-files

2015-01-25 Thread Nguyễn Thái Ngọc Duy
t/t3080/color_ls create mode 100644 t/t3080/ls_colors diff --git a/t/t3080-list-files.sh b/t/t3080-list-files.sh new file mode 100755 index 000..6313dd9 --- /dev/null +++ b/t/t3080-list-files.sh @@ -0,0 +1,122 @@ +#!/bin/sh + +test_description='git list-files test' + +. ./t

Re: [PATCH 00/19] Add git-list-files

2014-12-02 Thread Jeff King
On Tue, Dec 02, 2014 at 06:45:52PM +0700, Duy Nguyen wrote: > > As a side note, I wonder if it would be sensible to whitelist some > > commands as porcelain, and allow aliases to override them (either > > entirely, or just to add-in some options). > > Agreed. Maybe not all porcelain (some like gi

Re: [PATCH 00/19] Add git-list-files

2014-12-02 Thread Michael J Gruber
Jeff King schrieb am 02.12.2014 um 06:42: > On Sun, Nov 30, 2014 at 03:55:48PM +0700, Nguyễn Thái Ngọc Duy wrote: > >> This is something else that's been sitting in my tree for a while now. >> It adds "git list-files", intended to be aliased as "ls&q

Re: [PATCH 09/19] Add git-list-files, a user friendly version of ls-files and more

2014-12-02 Thread Duy Nguyen
make an alias >> with better default options. > > I understand that your original version was named git-ls and that you > renamed it to git-list-files in order to leave 'ls' available so users > can create an 'ls' alias specifying their own default options.

Re: [PATCH 00/19] Add git-list-files

2014-12-02 Thread Duy Nguyen
On Tue, Dec 2, 2014 at 12:42 PM, Jeff King wrote: > On Sun, Nov 30, 2014 at 03:55:48PM +0700, Nguyễn Thái Ngọc Duy wrote: > >> This is something else that's been sitting in my tree for a while now. >> It adds "git list-files", intended to be aliased as "ls&q

Re: [PATCH 00/19] Add git-list-files

2014-12-02 Thread Duy Nguyen
On Tue, Dec 2, 2014 at 3:02 AM, Junio C Hamano wrote: > Does this contain a lot of borrowed code or something? The style > violation in the patches are unusually high, even compared with your > other series. The first one is from coreutils, but I reformatted (and trimmed) to fit Git. I recall yo

Re: [PATCH 00/19] Add git-list-files

2014-12-01 Thread Jeff King
On Sun, Nov 30, 2014 at 03:55:48PM +0700, Nguyễn Thái Ngọc Duy wrote: > This is something else that's been sitting in my tree for a while now. > It adds "git list-files", intended to be aliased as "ls" with your > favourite display options. When I read the

Re: [PATCH 09/19] Add git-list-files, a user friendly version of ls-files and more

2014-12-01 Thread Eric Sunshine
(glob) is on by default so '*.c' means a.c but not a/b.c, use > '**/*.c' for that. > * auto pager > > The name 'ls' is not taken. It is left for the user to make an alias > with better default options. I understand that your original version was named

Re: [PATCH 00/19] Add git-list-files

2014-12-01 Thread Junio C Hamano
Does this contain a lot of borrowed code or something? The style violation in the patches are unusually high, even compared with your other series. I've tried to fix it up and will push out the result on 'pu' if things work OK, but this does not even have tests, so it is unlikely that it would br

[PATCH 09/19] Add git-list-files, a user friendly version of ls-files and more

2014-11-30 Thread Nguyễn Thái Ngọc Duy
ons(+), 4 deletions(-) create mode 100644 Documentation/git-list-files.txt diff --git a/.gitignore b/.gitignore index a052419..9727ecc 100644 --- a/.gitignore +++ b/.gitignore @@ -76,6 +76,7 @@ /git-init-db /git-interpret-trailers /git-instaweb +/git-list-files /git-log /git-ls-files /git-l

[PATCH 00/19] Add git-list-files

2014-11-30 Thread Nguyễn Thái Ngọc Duy
This is something else that's been sitting in my tree for a while now. It adds "git list-files", intended to be aliased as "ls" with your favourite display options. As you can guess it's a friendlier version (and pretty close to GNU ls) of ls-files. On one hand, I

[PATCH v3 09/18] Add git-list-files, a user friendly version of ls-files and more

2014-03-30 Thread Nguyễn Thái Ngọc Duy
ons(+), 4 deletions(-) create mode 100644 Documentation/git-list-files.txt diff --git a/.gitignore b/.gitignore index dc600f9..faeac5d 100644 --- a/.gitignore +++ b/.gitignore @@ -75,6 +75,7 @@ /git-init /git-init-db /git-instaweb +/git-list-files /git-log /git-ls-files /git-ls-remote diff

Re: git list files

2013-01-14 Thread Стойчо Слепцов
I went through your initial thread about blame-tree, and it is really very very (+very) close to answer my question. Thanks for writing it, if it comes one day to git, I will use it. As for: 'I guess people's eyes and brains are trained by the old school "file boundaries matter" way of thinking'

Re: git list files

2013-01-14 Thread Jeff King
On Sun, Jan 13, 2013 at 11:08:32PM -0800, Jonathan Nieder wrote: > Jeff King wrote: > > > As far as I recall, that script works. However, I have a pure-C > > blame-tree implementation that is much faster, which may also be of > > interest. I need to clean up and put a few finishing touches on it

Re: git list files

2013-01-13 Thread Jonathan Nieder
Jeff King wrote: > As far as I recall, that script works. However, I have a pure-C > blame-tree implementation that is much faster, which may also be of > interest. I need to clean up and put a few finishing touches on it to > send it to the list, but it has been in production at GitHub for a few

Re: git list files

2013-01-13 Thread Jeff King
On Sun, Jan 13, 2013 at 09:56:02AM -0800, Jonathan Nieder wrote: > > lets, say the equivalent of the $ls -d b* within git.git root directory > > would look like: > > > > > > 98746061 jrnieder 2010-08-12 17:11 Standardize-do-.-while-0-style base85.c > > c43cb386 pclouds 2012-10-

Re: git list files

2013-01-13 Thread Стойчо Слепцов
thanks alot, Jonathan, I'll try to search through those scripts. Blind. 2013/1/13 Jonathan Nieder : > Hi, > > Стойчо Слепцов wrote: > >> lets, say the equivalent of the $ls -d b* within git.git root directory >> would look like: >> >> >> 98746061 jrnieder 2010-08-12 17:11 Standar

Re: git list files

2013-01-13 Thread Стойчо Слепцов
not really, ls-tree provides the hash of blobs and trees, what I am searching for is"the last commit"who introduced the blob or tree. but, hey, thanks for the answer! Blind 2013/1/13 Matthieu Moy : > Стойчо Слепцов writes: > >> Hi, >> >> I was searching for some git- command to provide me a list

Re: git list files

2013-01-13 Thread Jonathan Nieder
Hi, Стойчо Слепцов wrote: > lets, say the equivalent of the $ls -d b* within git.git root directory > would look like: > > > 98746061 jrnieder 2010-08-12 17:11 Standardize-do-.-while-0-style base85.c > c43cb386 pclouds 2012-10-26 22:53 Move-estimate_bisect_steps-to-li bisect.c

Re: git list files

2013-01-13 Thread Matthieu Moy
Стойчо Слепцов writes: > Hi, > > I was searching for some git- command to provide me a list of files > (in a git directory), same as ls, > but showing information from the last commit of the file instead. > > lets, say the equivalent of the $ls -d b* within git.git root directory > would look lik

git list files

2013-01-13 Thread Стойчо Слепцов
Hi, I was searching for some git- command to provide me a list of files (in a git directory), same as ls, but showing information from the last commit of the file instead. lets, say the equivalent of the $ls -d b* within git.git root directory would look like: 98746061 jrnieder