Commit graph

31 commits

Author SHA1 Message Date
spacewander f788c789f3 git-summary: clean up other shellcheck warnings 2019-10-31 18:30:46 +08:00
spacewander 3e8c3ab0c4 git-summary: fix incorrect active days when commits range is given
Previous when commits range is given, we count the active days of whole
history because we didn't pass the argument.
2019-10-31 17:56:41 +08:00
spacewander ff991ac99e git-summary: remove useless result function.
This function was introduced when merging `bin/git-line-summary` into
`bin/git-summary`.
2019-10-31 17:56:41 +08:00
spacewander 203f5b48ad git-summary: add --dedup-by-email to remove duplicate users 2019-10-27 09:04:27 +08:00
spacewander d4de567ca7 git-line-summary: should be the history
Also remove some trailing lines after the output.
2019-07-23 22:13:29 +08:00
罗泽轩 d4bf79df8f
git-summary: unescape tab for linux column utility
git-summary: unescape tab for linux column utility

Linux column utility will escape tab if a separator is specified.
This problem is first reported in Fedora 27.
2018-02-08 22:34:43 +08:00
spacewander 227ef26e7f git summary: use more common way to cd to top level directory 2017-07-15 09:57:57 +08:00
spacewander bb5f4b0234 use U+266A instead of comma as separator 2017-01-24 14:13:38 +08:00
Andrew Janke 19f66943cb git-summary: protect against character encoding issues with LC_ALL=C 2015-10-02 08:35:04 -04:00
Akim Demaille 5f61bfad6e summary: beware of locale issues, and pass options to line-summary
* bin/git-summary: here.
2015-09-23 19:27:19 +02:00
Sam Thursfield 6a000ec99b effort, summary: Correctly estimate the number of active days
The output of `git log` is not exactly in chronological order. The
default sort option (--date-order) is described in the man page as
follows:

    Show no parents before all of its children are shown, but otherwise
    show commits in the commit timestamp order.

The `uniq` program will only remove duplicate lines if they follow each
other. In order for this to work correctly, we need to ensure that the
list of dates is exactly in chronological order. There doesn't seem to
be a `git log` option to achieve this, but we can use the `sort`
program. I used reverse sort (`sort -r`) since the output will be roughly
reverse-sorted already.

It's also worth noting that the default --date-order option sorts by
commit date, but git-summary uses *author* date (%ai). Passing
--author-date-order doesn't fix this issue, though, so I didn't change
that.

At the time of writing, this change reduces the number of 'active days'
for git-extras.git from 367 to 331.
2015-09-14 13:32:10 +01:00
jykntr bfeb897a6d git-summary correctly displays project name
git-summary correctly displays project name when not executed in the top
level directory of a repository.  Fixes tj/git-extras#302.

Uses the git-sh-setup script to find top level directory and then uses
that directory name for the project name.
2015-02-18 17:09:39 -07:00
hemanth.hm 7b7913fab1 More portable she-bangs. 2014-11-30 17:47:26 +05:30
Joshua Appelman 04c43430aa Uses column -t to align summary output in a table. 2014-07-14 16:49:48 +02:00
hemanth.hm be12410e31 Merge pull request #221 from zlx/feature/git-summary-doc
Make line-summary as sub-command.
2014-07-14 20:01:20 +05:30
Jarod Stewart 374df5cabf Letter spacing in author list
This is a quick fix for the letter spacing for the author list.
2014-05-07 22:58:41 -06:00
soffolk a4cf7462f0 Add line-summary as an options --line & doc 2014-04-22 21:50:22 +08:00
Aurélien Scoubeau ed24416bf7 Make repository_age() "history rewrite safe"
Change commit date to author date, so that the repo age doesn't change if history rewriting tools (such as amend, rebase, filter-branch) are used.
2013-06-17 12:56:39 +02:00
TJ Holowaychuk 618e6a27c1 fix git-summary repo age, remove "ago" 2012-07-09 14:14:16 -07:00
TJ Holowaychuk 38e41cf680 move active above commits in git-summary 2012-06-22 10:21:36 -07:00
TJ Holowaychuk c9fedfa27f git-summary: shorter repo age 2012-06-11 10:57:26 -07:00
TJ Holowaychuk 510e2c4d1b git-summary: make : line up 2012-06-11 10:57:05 -07:00
Leila Muhtasib c6f1a3eb3b Added repo age to git-summary.
Shows intitial date of first commit and how long ago that was in parentheses.
2012-06-11 13:23:57 -04:00
Tj Holowaychuk 1d839fdd15 Added active days to git-summary(1) (and refactored) 2012-02-09 10:15:48 -08:00
TJ Holowaychuk e7280f0305 refactored git-summary(1) 2012-02-07 22:18:45 -08:00
Tj Holowaychuk 54b1eecd8e typo 2011-08-24 19:29:15 -07:00
Tj Holowaychuk 6a9fe62c7d Added percentages to git-summary 2011-08-24 19:28:57 -07:00
Jonathan "Duke" Leto 843fc7ad11 Fix commit and file count in git-summary with a commitish 2010-09-08 15:16:49 -07:00
Jonathan "Duke" Leto 3662dd95bf Make git-summary take an optional commitish
This allows you to ask for a git summary based on a commitish, which is
very useful if you have a lot of project history. For example, if you
want a summary since the tag v42

$ git summary v42..
2010-09-08 15:16:49 -07:00
Jason Young 1158c19b61 Fix printing of authors for git-summary's on Ubuntu 2010-08-26 10:41:18 -07:00
Tj Holowaychuk d77cc7a6ef Added git-summary 2010-08-12 08:32:33 -07:00