Comments (3)
The reason i went with hashes instead of dates is because the date is constantly changing, whereas the base hash is stable. What happens on snapshot? Does it
- update the branch
- delete old branch and create new one
(1) is more familiar to Git users, but it's not possible with date branches.
Some other ideas:
- Shorten the hash to make room for commit message
- Make better use of the first line of the commit message. Date, file changed (short version, like just base name), num lines changed, things like that.
I suggest this because the branch name sits behind 20+ commits (at least for me), so making a useful branch name isn't that useful (imo) as it's buried in other commits. However, the first line of the commit message is featured prominently in most Git viewers. But space is at a premium, so think carefully on what you put there.
from dura.
Dura doesn't currently store any metadata about the branches it creates,so yeah currently users are stuck working with the generated hash-based branch names.
I think we're best avoiding the last two options as they'll generate extra complexity. Naming the branch after the datetime definitely makes sense though, and I do also like the idea of having changes shown. Being able to see immediately when a backup occurred and how much changed in that backup would be priceless when restoring.
These ideas might also feed nicely into my ideas in #70
from dura.
2022-02-18T14:59:07-0800:TagName+42+7 would be right out for a description of the 7th recent snapshot of uncommitted changes from a commit 42 commits after TagName in something like America/Phoenix time. Of course, instead of TagName it should be BranchName, but that's a more moveable feast. Had another thought or two they got away from me.
from dura.
Related Issues (20)
- Update: Upgrade clap to V3.1.6 & replace deprecated code in main.rs HOT 2
- Dura doesn't create any branches on github codespaces HOT 2
- brew install dura HOT 4
- Couldnt you just git commit more often? HOT 4
- Error: UnbornBranch HOT 6
- Update clap
- Data Corruption: Don't allow dura to run as root
- Ubuntu install instructions HOT 2
- High CPU utilization while idle HOT 5
- Chronological git log HOT 2
- feature request: remove old dura branches periodically HOT 1
- support install linux and macOS with brew HOT 15
- `dura checkout` command HOT 6
- Tests broken HOT 3
- Binaries built by Github are not working HOT 6
- Prevent pushin dura branches to remote HOT 4
- stabilize config loading HOT 2
- Dura fails to capture anything if a worktree is present as a subdir of the working directory HOT 4
- Feature Request: `dura status` command HOT 2
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 dura.