Introduction
Introduction Statistics Contact Development Disclaimer Help
fix last command by using a default number - notes - a console notes manager us…
Log
Files
Refs
Tags
LICENSE
---
commit f7e73487c7dd40d2589d1797bacfb023e57ae722
parent 9e275119a1e5def852ee9cb71077f1908c1d128f
Author: Solene Rapenne <[email protected]>
Date: Tue, 25 Jun 2019 14:35:59 +0200
fix last command by using a default number
Diffstat:
M notes | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/notes b/notes
@@ -112,7 +112,15 @@ delete() {
# display the list of edited files ordered by time
last() {
+
cd "$REPO"
+
+ if [ -n "$1" ]; then
+ limit="$1"
+ else
+ limit=10
+ fi
+
git log --date=relative --name-only | \
awk '
/^commit / {
@@ -140,7 +148,7 @@ last() {
print date" "$0
}
}
- }' | head -n $1
+ }' | head -n "$limit"
exit 0
}
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.