Introduction
Introduction Statistics Contact Development Disclaimer Help
last command reuse relative dates - notes - a console notes manager using git
Log
Files
Refs
Tags
LICENSE
---
commit 9e275119a1e5def852ee9cb71077f1908c1d128f
parent 71f0cbd9e967d15c0881e69447d0ceded20a0142
Author: Solene Rapenne <[email protected]>
Date: Tue, 7 May 2019 12:44:49 +0200
last command reuse relative dates
Diffstat:
M notes | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/notes b/notes
@@ -113,7 +113,7 @@ delete() {
# display the list of edited files ordered by time
last() {
cd "$REPO"
- git log --name-only | \
+ git log --date=relative --name-only | \
awk '
/^commit / {
date="no"
@@ -137,7 +137,7 @@ last() {
{
seen[$0]++
if(seen[$0]==1) {
- print date"\t"$0
+ print date" "$0
}
}
}' | head -n $1
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.