diff --git a/bin/git-standup b/bin/git-standup index c32c921..4bc6387 100755 --- a/bin/git-standup +++ b/bin/git-standup @@ -5,7 +5,7 @@ usage() { cat <] [-w ] [-d ] [-m ] [-g] [-h] [-f] [-B] [-n ] [-w |-d ] [-m ] [-g] [-h] [-f] [-B] [-n

SYNOPSIS

-

git-standup [-a author] [-m depth] [-d days ago] [-D date format] [-g] [-L] [-f] [-B] [-n number of commits]
+

git-standup [-a author] [-w weekstart-weekend|-d days-ago] [-m depth] [-D date format] [-g] [-L] [-f] [-B] [-n number of commits]
git-standup -h

DESCRIPTION

@@ -99,10 +99,17 @@ Defaults to $(git config user.name).

Enable the inclusion of symbolic links in recursive directory search.

-

-d 1

+

-d days-ago

The start of commit history. Defaults to 1, means "1 days ago".

+

-w weekstart-weekend

+ +

Limit the search range to weekdays. +If weekstart and/or weekend are missing they default to Mon and Fri. +If the current day is weekstart commits made on weekend will be included. +I.e. calling git standup -w - on a Monday will include commits made on the last Friday.

+

-D relative

The date format displayed in commit history. Defaults to "relative".

@@ -198,7 +205,7 @@ master
  1. -
  2. August 2021
  3. +
  4. April 2022
  5. git-standup(1)
diff --git a/man/git-standup.md b/man/git-standup.md index 8cc30fe..7419aab 100644 --- a/man/git-standup.md +++ b/man/git-standup.md @@ -3,7 +3,7 @@ git-standup(1) -- Recall the commit history ## SYNOPSIS -`git-standup` [-a author] [-m depth] [-d days ago] [-D date format] [-g] [-L] [-f] [-B] [-n number of commits] +`git-standup` [-a author] [-w |-d ] [-m depth] [-D date format] [-g] [-L] [-f] [-B] [-n number of commits] `git-standup` -h ## DESCRIPTION @@ -25,10 +25,17 @@ The depth of recursive directory search. Defaults to 1. Enable the inclusion of symbolic links in recursive directory search. --d 1 +-d days-ago The start of commit history. Defaults to 1, means "1 days ago". +-w + +Limit the search range to weekdays. +If and/or are missing they default to Mon and Fri. +If the current day is , commits made on will be included. +I.e. calling `git standup -w -` on a Monday will include commits made on the last Friday. + -D relative The date format displayed in commit history. Defaults to "relative".