mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-20 11:25:34 +00:00
parent
0f5c5530df
commit
b8f8827914
1 changed files with 14 additions and 0 deletions
|
@ -303,3 +303,17 @@ concat(
|
||||||
'''
|
'''
|
||||||
'format_field(key, value)' = 'key ++ ": " ++ value ++ "\n"'
|
'format_field(key, value)' = 'key ++ ": " ++ value ++ "\n"'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
Get short commit IDs of the working-copy parents:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
jj log --no-graph -r @ -T 'parents.map(|c| c.commit_id().short()).join(",")'
|
||||||
|
```
|
||||||
|
|
||||||
|
Show machine-readable list of full commit and change IDs:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
jj log --no-graph -T 'commit_id ++ " " ++ change_id ++ "\n"'
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue