dasch / git-ls

A simplified git-ls-files, which works more like the normal ls

This URL has Read+Write access

git-ls / git-ls
100755 16 lines (12 sloc) 0.311 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# Copyright (c) 2008 Daniel Schierbeck
#
# List the versioned files in the current directory.
 
USAGE=""
LONG_USAGE="List the versioned files in the current directory"
SUBDIRECTORY_OK=Yes
OPTIONS_SPEC=
. git-sh-setup
 
git-ls-files $@ | cut -d '/' -f 1 | sort | uniq | grep --invert-match '"'
 
exit 0