Coder Social home page Coder Social logo

git-done-maybe's Introduction

git-done-maybe

What you did on the last working day ..or what someone else did. Inspired by git-standup and need to have compact multiple repo access.

npm-url

git done-maybe

Install

To install git-done-maybe library via npm

$ npm install -g git-done-maybe

Usage

$ git done-maybe [--a=<author name>] 
                 [--d=<days-ago>] 
                 [--df=<date-format>] 
                 [--m] 
                 [--f] 
                 [--s]
                 [--r]
                 [--h]

Below is the description for each of the flags

  • --a - Specify author to restrict search to (if not specified, will return all contributors)
  • --d - Specify the number of days back to include (default: 1)
  • --df - Specify the date format for "git log" (default: relative, options: local|default|iso|iso-strict|rfc|short|raw)
  • --m - Specify the multiple git projects search in target directory
  • --f - Fetch the latest commits beforehand
  • --s - Display stats for the commits (files changed, insertions, deletions)
  • --r - Export report for current logs to file
  • --h - Display the help screen

For the basic usage, all you have to do is run git done-maybe in a repository.

Single Repository

To check all commits from last working day, head to the project repository and run

$ git done-maybe

Multiple Repository

Open a directory having multiple repositories and run

$ git done-maybe --m

This will show you all commits since the last working day in all the repositories inside.

Checking commits for specific contributor

If you want to find out someone else's commits

# If their name on git is "Charles Lee"
$ git done-maybe --a="Charles Lee"

# Or if their email on git is "[email protected]"
$ git done-maybe --a="[email protected]"

Commits from n days ago

If you would like to show all your/someone else's commits from n days ago

# Show all commits from 7 days ago
$ git done-maybe --d=7

# Show all Charles Lee's commits from 7 days ago
$ git done-maybe --a="Charles Lee" --d=7

Specifying the output date format

Add --df flag to specify the date format (default: relative)

$ git done-maybe --df=iso
# Available relative|local|default|iso|iso-strict|rfc|short|raw

Fetch latest commits before showing result

If you would like to automatically run git fetch --all before printing the result, you can add the --f flag

$ git done-maybe --f

Show statistics for all commits

If you would like to show how many files are changed (with insertions/deletions) per commit, you can add the --s flag

$ git done-maybe --s

Export report for all commits

If you would like to export report to specific file after printing the results, you can add the --r flag

$ git done-maybe --r
# You will be prompted to enter name for report file

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.