git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 3/3] Add "ls", which is basically ls-files with user-friendly settings

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Jan 7, 2010, 18:09 UTC
Message-ID
<fcaeb9bf1001071009m11a7adfehdad485a4baeeb958@mail.gmail.com>
In-Reply-To
<7vfx6h4ww3.fsf@alter.siamese.dyndns.org>
On 1/8/10, Junio C Hamano <gitster@pobox.com> wrote:
Show 20 quoted lines
> Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
>
>  > +
>  > +     if (show_colums) {
>  > +             const char *argv[] = { "column", NULL };
>  > +
>  > +             memset(&cp, 0, sizeof(cp));
>  > +             cp.in = -1;
>  > +             cp.out = dup(1);
>  > +             cp.argv = argv;
>  > +             start_command(&cp);
>  > +             close(1);
>  > +             dup2(cp.in, 1);
>  > +             close(cp.in);
>  > +     }
>
>
> I think the code for columnar output used in producing "git help -a"
>  output should be reusable (if not, should be made reusable and reused
>  here).

I saw that and even exported term_columns() but was too lazy to make pretty_print_string_list() something reusable. Will think of it again when I see this command is worth pushing forward.

-- 
Duy
Previous: Junio C HamanoNext: Nguyen Thai Ngoc Duy
Message 7 of 13 in “Bringing git-ls-files to porcelain level”
  1. 0/3 Bringing git-ls-files to porcelain levelNguyễn Thái Ngọc Duy, Jan 7, 2010
  2. 1/3 ls-files: support --max-depthNguyễn Thái Ngọc Duy, Jan 7, 2010
  3. 2/3 ls-files: support -o --max-depth (more of a hack as fill_directory should support this)Nguyễn Thái Ngọc Duy, Jan 7, 2010
  4. Junio C HamanoJan 7, 2010
  5. 3/3 Add "ls", which is basically ls-files with user-friendly settingsNguyễn Thái Ngọc Duy, Jan 7, 2010
  6. Junio C HamanoJan 7, 2010
  7. Nguyen Thai Ngoc DuyJan 7, 2010
  8. Nguyen Thai Ngoc DuyJan 8, 2010
  9. Matthieu MoyJan 7, 2010
  10. Matthieu MoyJan 7, 2010
  11. Nguyen Thai Ngoc DuyJan 7, 2010
  12. Kan-Ru ChenNov 1, 2010
  13. Nguyen Thai Ngoc DuyNov 1, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.