From be2b44bd58d4cd36b89fe2c2032c56e25da29afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Let?= Date: Mon, 27 Apr 2020 22:15:10 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.md b/README.md index 64cd355..75c8e3f 100644 --- a/README.md +++ b/README.md @@ -215,14 +215,6 @@ You can install `jq` using your favourite package manager or you can use other J *Recorded metadata will be reduced to only include useful information in the future.* -### Graphs - -:clock10: *coming soon-ish (working on other parts of the project atm)* - -Sneak peak - -![graph of command sequences](img/graph-command-sequences.png) - ## Known issues ### Q: I use bash on macOS and resh doesn't work From 5f7397b3b961492609f946f96fa9a20bc8d1ff23 Mon Sep 17 00:00:00 2001 From: Simon Let Date: Mon, 27 Apr 2020 23:11:53 +0200 Subject: [PATCH 2/2] add git-after to sanitization --- cmd/sanitize/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/sanitize/main.go b/cmd/sanitize/main.go index bfc2619..c4fd60a 100644 --- a/cmd/sanitize/main.go +++ b/cmd/sanitize/main.go @@ -148,7 +148,9 @@ func (s *sanitizer) sanitizeRecord(record *records.Record) error { record.PwdAfter = s.sanitizePath(record.PwdAfter) record.RealPwdAfter = s.sanitizePath(record.RealPwdAfter) record.GitDir = s.sanitizePath(record.GitDir) + record.GitDirAfter = s.sanitizePath(record.GitDirAfter) record.GitRealDir = s.sanitizePath(record.GitRealDir) + record.GitRealDirAfter = s.sanitizePath(record.GitRealDirAfter) record.Home = s.sanitizePath(record.Home) record.ShellEnv = s.sanitizePath(record.ShellEnv) @@ -166,6 +168,11 @@ func (s *sanitizer) sanitizeRecord(record *records.Record) error { log.Println("Error while snitizing GitOriginRemote url", record.GitOriginRemote, ":", err) return err } + record.GitOriginRemoteAfter, err = s.sanitizeGitURL(record.GitOriginRemoteAfter) + if err != nil { + log.Println("Error while snitizing GitOriginRemoteAfter url", record.GitOriginRemoteAfter, ":", err) + return err + } // sanitization destroys original CmdLine length -> save it record.CmdLength = len(record.CmdLine)