Skip to content

Detect files that are currently not under version control

Notifications You must be signed in to change notification settings

hugopeixoto/untracked

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detect files that are currently not under version control

This tool helps me figure out which projects are not tracked by a git repository. Running this on my $HOME/work directory outputs the following:

hugopeixoto@hylia$ untracked ~/work/personal
m /home/hugopeixoto/work/personal/challenges/aoc2021
m /home/hugopeixoto/work/personal/challenges/aoc2020
m /home/hugopeixoto/work/personal/dotfiles
m /home/hugopeixoto/work/personal/tico
u /home/hugopeixoto/work/personal/talks
m /home/hugopeixoto/work/personal/netdiff
m /home/hugopeixoto/work/personal/dockerfiles
m /home/hugopeixoto/work/personal/infrastructure
m /home/hugopeixoto/work/personal/notes
u /home/hugopeixoto/work/personal/weekly2items
u /home/hugopeixoto/work/personal/dedup

The first character represents the status of the file/directory, where:

  • m means modified: the directory is a git repository but with uncommited changes
  • u means untracked: the directory/file is not tracked in git repository

The program will exit with status code 1 if there were any untracked or modified files found, and 0 if everything was tracked.

About

Detect files that are currently not under version control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages