Comments (2)
I have something pretty similar to this in my config which might help. I like to know what commits are on a branch at a glance, so I made commits in immutable_heads()..branches()
have an unfilled diamond icon instead of the default circle. The actual revset check is in a separate template-alias called in_branch(commit)
. Adding color could probably be achieved with the label()
template function around the node icon.
from jj.
This is currently not easily doable, but it is doable in a complicated fashion (I think) by combining the contained_in
template from https://martinvonz.github.io/jj/prerelease/templates/#commit-type and the log node template from https://martinvonz.github.io/jj/prerelease/config/#node-style. Update: See also Scott's comment below, he uses in_branch
which might be easier than contained_in
.
I'm not sure whether these features exist in the stable version, but a new stable version will be released shortly.
I think an FR to make it simpler makes sense as well, but if you or me or any other reader feel up to trying the complicated way, they might gain some insight into what's useful and how to best design it.
from jj.
Related Issues (20)
- FR: Equivalent to `git ls-files`? HOT 3
- jj git fetch downloads branches with names uppercased HOT 6
- Rebasing a duplicated change results in an empty change HOT 1
- Error: invalid or unknown remote ssh hostkey (when using /etc/ssh/ssh_known_hosts) HOT 1
- FR: Allow renaming of existing workspaces HOT 2
- git submodules in colocated repos create weird phantom file creations/deletions HOT 9
- Don't introduce new redundant ancestor merges when auto-rebasing HOT 5
- Abandoning thousands of commits runs out of memory HOT 3
- Could use a full example of how to pass templates to cli args HOT 3
- FR: error out when creating branches with @ in the name HOT 5
- `jj log --no-graph` shouldn't print multiple revs on same output line HOT 3
- SSH login with gpg keycard backed ssh key and pinentry-curses for pin fails
- FR: Gerrit support HOT 2
- FR: Pushing and fetching arbitrary refs HOT 4
- Test failure in the last release (0.21.0) HOT 15
- FR: merge tool edit conflict marker as 3-way HOT 1
- Panic when running `jj st`: `must have one more adds than removes` HOT 2
- JJ seems to ignore configuration on MacOS HOT 10
- FR: empty commit message should be a no-op HOT 5
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 jj.