git-time-metric / gtm Goto Github PK
View Code? Open in Web Editor NEWSimple, seamless, lightweight time tracking for Git
License: MIT License
Simple, seamless, lightweight time tracking for Git
License: MIT License
There are various issues with supporting Windows with anything other than plain text. Color output is not working properly and timeline reports are not rendering the block characters correctly.
We only have the ability to currently create release builds for Window, we need a developer build.
Thanks for the worderful tool.
Here is the issue I'm facing,
gtm vim
plugin,It would be nice, if you add GTM to Chocolatey โ Windows package manager.
cinst gtm -y
in terminal,cinst program1 program2 program3 -y
in terminal.Thanks.
Hi,
running on a Mac OS 10.10, I found gtm and thought it seemed pretty cool and wanted to give it a shot.
But after installing and running an gtm init
, I always get "No file need merging".
Running a git config --get-regexp alias
, I could see that gtm
wasn't an alias of git merge.
I have found this stack post http://stackoverflow.com/questions/7854611/git-mergetool-reports-no-files-need-merging, but that didn't solved the issue either.
Also gtm report throws a Git Time Metric is not initialized
Am I missing something ?
?
Cannot read property 'document' of undefined: TypeError: Cannot read property 'document' of undefined
property 'document' of undefined
at C:\Users\username\.vscode\extensions\s3ramsay.vscode-gtm-0.0.3\out\src\extension.js:48:88
VS Code v1.4
We may have some issues with date parsing.
gtm report -format summary -after "2016-11-27"
Sat Nov 26
5m 0s Fix report help format, darn tabs :(
18m 0s Update README [ci skip] [gtm]
1h 36m 0s Fix gtm verify [gtm]
1h 59m 0s
$ gtm report -format summary -this-week
0s
We can only report on one git repo at a time. It would be nice to be able to report across more than one repo at a time. Providing the ability set tags on repos and optionally use the tags when reporting could be one way to do this.
Here's a possible set of CLI commands for this.
gtm tag <name> set a tag on current project
gtm tag -l list all tags and associated projects
gtm tag -d <name> delete tag on current project
gtm report [-n] [-format commits|totals|files|timeline] [-total-only] [-tag name ...]
I have definitely been working on the repo in question. Do I have to configure more than installing the plugins for Atom / Sublime Text / Vim to start tracking time?
Initially I ran git init
and gtm init
. Is time only tracked on the master branch?
This is the output from gtm report -today
Fri Jan 20
0s Fix sms generation for numbers with leading 47 [quick_coupon]
0s Add SMS credentials [quick_coupon]
0s Replace all configuration with phpdotenv and heroku config vars [quick_coupon]
0s Load config file based on environment loaded [quick_coupon]
0s Fix typo in phpcs standard [quick_coupon]
0s
Using Windows 7 OS.
Downloaded the Windows installer (newest beta release v1.0-beta.3).
Ran installer, installed the program in default location ( C:\Program Files (x86)\gtm ).
Navigated to the .exe program file in my new gtm folder, double-clicked to run.
Command Prompt window opened and error message popped up:
I'm new to using GTM, so I apologize if the solution to this problem is obvious or if this just isn't in the capabilities of GTM.
If I use GTM to track time on a handful of local commits on master and then try to rebase with origin, replaying my local commits on top of origin (rather than merging upstream changes), all of the GTM data that is tracked along side those local commits disappears.
Is there a way to avoid this or to recover that data or implement this? I'm thinking some type of post-rewrite
hook may help here, so I'll start looking at how I might use that, but if anyone working on this project has any insight here, I know I'd appreciate it.
Hi
It would be nice to have option to only track time spent editting files ex. if i open some files in Intellij IDEA or in vim, and start editting, and then I will close it, go for a run before commiting, gtm still tracks time spent. You could have new event file in .gtm folder, and with "O /path/to/file" of "C /path/to/file", where O stands for opened, and C for closed. I could help you with that if you wish, cuz' I think it is really great tool.
Hey,
I'm using SourceTree as GUI for my git repos but oddly gtm
is not working.
The terminal log of ST gave me this after a closer look:
.git/hooks/post-commit: line 7: gtm: command not found
Here the $PATH
when running the post-commit file from ST:
/Applications/SourceTree.app/Contents/Resources/git_local/libexec/git-core:/Applications/SourceTree.app/Contents/Resources/bin:/Applications/SourceTree.app/Contents/Resources/git_local/bin:/Applications/SourceTree.app/Contents/Resources/git_local/gitflow:/Applications/SourceTree.app/Contents/Resources/git_local/git-lfs:/usr/bin:/bin:/usr/sbin:/sbin
I use ZSH and it's working fine (terminal plug-in installed).
Any idea?
Currently we find the first git repository regardless if it's initialized with gtm or not. Change the behavior to continue to look up the directory tree until we find a registered gtm git project.
This could allow for having a parent gtm git project that tracks children that are only git projects but are not initialized for gtm tracking.
This needs research to see if this is even doable. One issue is how to handle commits for tracking time in the parent project.
I feel like I should know the answer to this, but the notes stuff is ๐ to me...
I set it up on one computer, but didn't push it. Worked on stuff on a second computer and did push that. I go back to the first computer and try git fetchgtm
and get the following...
! [rejected] refs/notes/gtm-data -> refs/notes/gtm-data (non-fast-forward)
Thanks.
Please provide package links to:
github.com repo: https://github.com/smancke/guble
godoc.org: https://godoc.org/github.com/smancke/guble
goreportcard.com: https://goreportcard.com/report/github.com/smancke/guble
coverage service link (gocover, coveralls etc.): https://coveralls.io/github/smancke/guble?branch=master
Note: that new categories can be added only when there are 3 packages or more.
Make sure that you've checked the boxes below before you submit PR:
I have added my package in alphabetical order
I know that this package was not listed before
I have added godoc link to the repo and to my pull request
I have added coverage service link to the repo and to my pull request
I have added goreportcard link to the repo and to my pull request
I have read Contribution guidelines and Quality standard.
Hi there - this is a very cool piece of software and I would like to start using it but I have some problems understanding exactly how it works. I use Vim and installed the plugin. I opened a file and read it for two minutes, then exited vim. However, when I call gtm status repeatedly after that the time it shows me keeps growing even though I'm not reading that file anymore. Is it expected behaviour?
Thanks a lot!
UPDATE: seems like time stops being added after a couple of minutes...
Hi @nexus-uw
I can see this error message in the devtools:
shell.ts:433 Cannot read property 'document' of undefined: TypeError: Cannot read property 'document' of undefined at C:\<extensions-path>\s3ramsay.vscode-gtm-0.1.2\out\src\extension.js:49:88
Extension | Author | Version |
---|---|---|
vscode-markdownlint | DavidAnson | 0.6.1 |
jshint | dbaeumer | 0.10.15 |
ghlink | dt | 0.0.4 |
EditorConfig | EditorConfig | 0.3.4 |
Theme-Zenburn | gerane | 0.0.3 |
sass-lint | glen-84 | 0.0.3 |
vscode-commitizen | KnisterPeter | 0.3.5 |
vscode-github | KnisterPeter | 0.9.0 |
debugger-for-chrome | msjsdiag | 2.4.2 |
vscode-docker | PeterJausovec | 0.0.11 |
gitlink | qezhu | 0.0.1 |
sass-indented | robinbentley | 1.3.0 |
sharecode | RolandGreim | 0.4.0 |
vscode-gtm | s3ramsay | 0.1.2 |
Steps to Reproduce:
When working on projects you typically spend a portion of your time in the terminal (at the command line). It would be useful to optionally include this time spent at the command line with the time spent editing files for a Git project.
gtm init creates a .tag file in the .gtm directory
Report project configuration and status for all projects
When working on a project it would be useful to create notes associated with the work in-progress. We could optionally include the notes when reporting.
gtm note - opens editor to create or edit a log entry
gtm note -d -y - deletes a note entry, optionally specify -y to automatically confirm yes
gtm report [-n] [-format commits|totals|files|timeline] [-total-only] [-note]
If I no longer want to track a project with gtm
, how do I undo all the changes that were incurred by the gtm init
command?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.