Wen Sun
b766a655ce
fix: git-summary commit count ( #1147 )
...
* fix: git-summary commit count
* fixup! fix: git-summary commit count
2024-06-18 11:13:07 +08:00
Edwin Kofler
47e940272a
fix: Improve Bash hygiene ( #1056 )
...
* fix: Improve Bash hygiene
* Update quoting to account for new bugs
* quotes
* fix: Remove extra shellcheck comment
2023-08-18 16:15:40 +08:00
spacewander
ba9e6f0c5c
Add typo checker
2023-06-19 21:51:53 +08:00
Günther Grill
d5eaa1895b
Add the current branch git summary ( #1034 )
...
Co-authored-by: guenthgr <guenther.grill@frauscher.com>
2023-02-27 11:26:53 +08:00
Edwin Kofler
b372bab52a
chore: Improve Bash variously ( #1032 )
2023-02-21 10:03:56 +08:00
Günther Grill
a008308267
Change the oneline option to a tebular version in the git summary ( #1031 )
...
Co-authored-by: guenthgr <guenther.grill@frauscher.com>
2023-02-12 20:14:16 +08:00
Edwin Kofler
75d0dbff6d
chore: Various Bash improvements ( #1029 )
2023-02-03 09:41:36 +08:00
Günther Grill
04eb5c04e6
Repo status overview ( #1017 )
...
Co-authored-by: guenthgr <guenther.grill@frauscher.com>
2023-01-13 13:43:03 +08:00
Günther Grill
cd348dad21
Add summary fields ( #1013 )
...
Co-authored-by: guenthgr <guenther.grill@frauscher.com>
2023-01-04 08:58:16 +08:00
Kurban Mallachiev
4fff03f429
git-summary: remove stray \ in grep call ( #1010 )
2022-12-19 18:02:29 +08:00
Günther Grill
7c4152ce83
Allow to run git-extras within git-bulk ( #1008 )
...
Co-authored-by: guenthgr <guenther.grill@frauscher.com>
Fix https://github.com/tj/git-extras/issues/1007
2022-12-07 13:58:18 +08:00
Áron Hoffmann
960ec8d2fd
Make git-summary accept multiple paths for the --lines argument ( #1005 )
2022-11-22 13:40:37 +08:00
罗泽轩
4de7b34c9f
Merge pull request #937 from tfendin/dedup_email_case_insensitive
...
Compare email adresses case insensitive in --dedup-by-email
2021-08-17 08:59:46 +08:00
Tobias Fendin
5feb0db212
Adopted git --dedup-by-email to the project coding style
2021-08-14 14:44:21 +02:00
Tobias Fendin
703a8481c6
summary --dedup-by-email now compares email adresses case insensitive.
2021-08-12 22:05:22 +02:00
Tobias Fendin
a7b7f05b5b
Add incompability check for git summary --line --no-merges, split synopsis in its manual.
2021-08-11 16:38:21 +02:00
Tobias Fendin
3c632d9e32
Added option --no-merges to git summary
2021-08-07 17:31:49 +02:00
spacewander
ffad35c8db
git-summary: support filtering --line with path
2021-07-09 17:57:30 +08:00
spacewander
16c1f0d3dc
git-summary: reject invalid option
...
Argument starts with '-' can't be committish, so we can safely reject
it.
2020-12-16 18:01:30 +08:00
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