Skip to content

arkamar/topcmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

topcmd

This tool is similar to well known watch but it executes given command every time it receives any data from standard input. The idea is to use it together with entr or inotify-tools tools to see the changes only when files are modified.

For example, one can watch the output of git diff command every time some file in repository changes:

git ls-files | entr echo | topcmd git diff

My motivation for this utility was to see the git tree of huge repositories (linux kernel or gentoo overlay for example), where it takes tens of seconds to print it. It does not make sense to print it every 2 seconds (default timeout of watch) but only when some reference changes. For this reason the repository contains a script gitwatch to simplify usage a little bit. The script basically watches all changes in branch references and spawns git subcommand every time something changes. Therefore to fulfill my motivation one can simply write:

gitwatch log --graph --all --decorate --oneline

build

To build topcmd simply type

make

There is a Gentoo ebuild in my local overlay.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published