Comments (2)
We might be able to do this with a shell function! We could add the statsh
command to the function below. What would we do when git statsh
is called? Should we add a gtm stash
command?
function git {
command git "$@"
rc=$?
if [ $rc -ne 0 ]; then
return $rc
fi
case "$1" in
'init'|'clone')
output=$(gtm init)
if [ $? -eq 0 ]; then
echo "$output"
fi
;;
'status')
output=$(gtm status)
if [ $? -eq 0 ]; then
echo "$output"
fi
;;
'push')
output=$(gtm status)
if [ $? -ne 0 ]; then
break
fi
echo "git pushgtm..."
output=$(git pushgtm)
if [ $? -eq 0 ]; then
echo "$output"
fi
;;
'fetch'|'pull')
output=$(gtm status)
if [ $? -ne 0 ]; then
break
fi
echo "git fetchgtm..."
output=$(git fetchgtm)
if [ $? -eq 0 ]; then
echo "$output"
fi
;;
esac
return $rc
}
from gtm.
I think a command for gtm stash
would be more appropriate, which then can be linked as a git sub-command #64. Currently there are no git hooks for stash related operations, it would have been straightforward to integrate gtm stash
with each repository. As of now every user would need to manually run gtm stash
with everygit stash
.
Git also supports naming stashes so I think gtm would also need to do the same to make sure correct time is being unstashed. This does not look like an easy feature to implement?.
Is it possible that git would also stash the *.event
automatically?. That would probably require those files to be tracked by git. But if somehow git can be tricked into thinking that *.event
are being tracked then it would stash them and also unstash properly when the user wants to. This would remove the need to implements a gtm stash
command.
from gtm.
Related Issues (20)
- Get name of branch while report with summary format HOT 1
- Release for RPi; build info
- After an interactive rebase with squashing and commit reordering, we lose the time tracking data HOT 5
- `gtm commit` deletes pending time when a note for last commit already exists HOT 1
- Dashboard app for gtm HOT 1
- Panic in event.pathFromSource when doing record on quoted path ending with backslash
- Extracting time metrics from an existing repository ? HOT 4
- Startup Abort in Pycharm 2019.3 HOT 2
- GTM Listing Seconds as Minutes
- Nullpointer in IntelliJ
- FreeBSD 13.0-RELEASE compatibility HOT 2
- "gtm report -this-year" is listing times of a different git project
- GTM homebrew package does not support apple silicon HOT 2
- GTM killed: 9 on macos Ventura 13.0 HOT 3
- Bug after Git interactive rebase HOT 2
- Executing "gtm report" remain pending HOT 2
- Jira Smart Commits support HOT 11
- Support for tracking apps HOT 4
- [bug] `gtm status` does not respect `-terminal-off` HOT 3
- Squash merge and gtm? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtm.