Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vcsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kevin Lyda
vcsh
Commits
93afbd50
Commit
93afbd50
authored
Nov 30, 2011
by
Richard Hartmann
Browse files
Options
Downloads
Patches
Plain Diff
Add list-tracked-by and list-tracked
parent
881deb41
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
vcsh
+18
-13
18 additions, 13 deletions
vcsh
with
18 additions
and
13 deletions
vcsh
+
18
−
13
View file @
93afbd50
...
...
@@ -110,17 +110,21 @@ list() {
done
}
#get_files() {
# return $(git ls-files)
#}
#
#list_tracked_all() {
# use
# for repo in $(list); do
# files="$files $(get_files $repo)"
# done
# echo $files | sort -u
#}
get_files
()
{
export
GIT_DIR
=
"
$VCSH_BASE
/
$VCSH_REPO_NAME
.git"
git ls-files
}
list_tracked
()
{
for
VCSH_REPO_NAME
in
$(
list
)
;
do
get_files
done
|
sort
-u
}
list_tracked_by
()
{
use
git ls-files |
sort
-u
}
rename
()
{
git_dir_exists
...
...
@@ -187,7 +191,7 @@ if [ "$1" = 'clone' ]; then
elif
[
"
$1
"
=
'delete'
]
||
[
"
$1
"
=
'enter'
]
||
[
"
$1
"
=
'init'
]
||
[
"
$1
"
=
'list-tracked-
all
'
]
||
[
"
$1
"
=
'list-tracked-
by
'
]
||
[
"
$1
"
=
'rename'
]
||
[
"
$1
"
=
'run'
]
||
[
"
$1
"
=
'seed-gitignore'
]
||
...
...
@@ -201,7 +205,8 @@ elif [ "$1" = 'delete' ] ||
[
"
$VCSH_COMMAND
"
=
'rename'
]
&&
export
GIT_DIR_NEW
=
"
$VCSH_BASE
/
$3
.git"
[
"
$VCSH_COMMAND
"
=
'run'
]
&&
shift
2
&&
export
VCSH_EXTERNAL_COMMAND
=
"
$*
"
[
"
$VCSH_COMMAND
"
=
'seed-gitignore'
]
elif
[
"
$1
"
=
'list'
]
;
then
elif
[
"
$1
"
=
'list'
]
||
[
"
$1
"
=
'list-tracked'
]
;
then
export
VCSH_COMMAND
=
"
$1
"
elif
[
-n
"
$1
"
]
;
then
export
VCSH_COMMAND
=
run
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment