8000 GitHub - johnliu/git-todo: Simple git plugin to search for inline todos in git repositories.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

johnliu/git-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-todo

A simple git extension to search for TODOs inside source code.

Requirements

  • ack or grep (ack is recommended).
  • python (2.x)

Installation

In general, download git-todo and git-todos and move the script to some place within your path.

Using Homebrew:

brew install https://raw.github.com/johnliu/git-todo/master/git-todo.rb

or clone the repository and:

brew install ./git-todo.rb

Usage

Note: both git todo and git todos can be used, as long as both scripts are installed.

# Search for default TODOs (by specified user, or same as --none if unspecified).
$ git todo
source_a.c
5:// TODO(johnliu): refactor into two classes

# Find all todos.
$ git todo --all      # or git todo -a
source_a.c
5:// TODO(johnliu): refactor into two classes
10:// TODO(otheruser): change all instances of class A to class B
23:// TODO: refactor to common functions file

source_b.c
48:// TODO(otheruser): rework user flow page, this is temporary.

# Find todos by a specific users (in the form of TODO(user)).
$ git todo --user=otheruser       # or git todo -uotheruser
source_a.c
10:// TODO
5CBF
(otheruser): change all instances of class A to class B

source_b.c
48:// TODO(otheruser): rework user flow page, this is temporary.

# Find todos by multiple users
$ git todo --user=otheruser,johnliu       # or git todo -uotheruser,johnliu
source_a.c
5:// TODO(johnliu): refactor into two classes
10:// TODO(otheruser): change all instances of class A to class B

source_b.c
48:// TODO(otheruser): rework user flow page, this is temporary.

# Find todos without a user (in the form of TODO:)
$ git todo --none       # or git todo -n
source_a.c
23:// TODO: refactor to common functions file

# Search starting from the current directory.
$ git todo --user=otheruser --dir      # or git todo -d -uotheruser
source_b.c
48:// TODO(otheruser): rework user flow page, this is temporary.

Options

Set the following in your .gitconfig file:

[todo]
  user = johnliu,liujohn        # the username(s) to search for by default.
  default = user                # user, all or none (user by default)

About

Simple git plugin to search for inline todos in git repositories.

Resources

Stars

Watchers

Forks

Packages

No packages published
0