Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
2a610cd1
Commit
2a610cd1
authored
5 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[doc] Add script to extract all contributors between two commits
parent
0ca78590
No related branches found
No related tags found
1 merge request
!1820
[doc] Add script to extract all contributors between two commits
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/doc/getcontributors.sh
+40
-0
40 additions, 0 deletions
bin/doc/getcontributors.sh
with
40 additions
and
0 deletions
bin/doc/getcontributors.sh
0 → 100755
+
40
−
0
View file @
2a610cd1
#!/bin/bash
help
()
{
echo
"Prints all commit authors (contributors) between two commits."
echo
"Usage:
$0
-from <commit sha or tag> -to <commit sha or tag>"
echo
"Example:
$0
-from 2.12.0 -to d9efb9d80b1f794d976f6b5ae1ffb9f71a7dcdf9"
echo
-e
"
\t
-from From where: The commit sha or other tags working with git log"
echo
-e
"
\t
-to To where: The commit sha or other tags working with git log"
exit
1
# Exit script after printing help
}
if
[[
$#
-eq
0
]]
then
help
;
fi
while
[[
$#
-gt
0
]]
do
key
=
"
$1
"
case
"
$key
"
in
-from
|
--from
)
from_sha
=
"
$2
"
shift
shift
;;
-to
|
--to
)
to_sha
=
"
$2
"
shift
shift
;;
?
)
help
# print help
;;
esac
done
echo
"Contributors from commit
${
from_sha
}
to
${
to_sha
}
:"
git log
$from_sha
..
$to_sha
"
$@
"
|
grep
^Author: |
sed
's/ <.*//; s/^Author: //'
|
sort
|
uniq
-c
|
sort
-nr
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment