GNOME/ostree — pull request #25 by mbarnes (2014-12-05 21:13:12+00:00)
Title: repo: Add symbolic refspec 'BOOT'

ostree_repo_resolve_rev() now recognizes 'BOOT' as a symbolic reference
to the checksum of the currently booted deployment.

Somewhat analogous to the symbolic reference 'HEAD' in git.

This seems to work, but I had to do some slightly sneaky things to avoid disrupting the API. Not sure how you feel about it.

Simple example:

```
# atomic status
TIMESTAMP (UTC) ID OSNAME REFSPEC······································
* 2014-12-05 18:25:49 1ff9126862 rhel-atomic-host local:rhel-atomic-host/7/x86_64/standard·····
2014-12-05 17:00:37 ba5330508a rhel-atomic-host local:rhel-atomic-host/7/x86_64/standard·····

# atomic db diff 1ff9126862^ 1ff9126862
ostree diff commit old: 1ff9126862^ (ba5330508af4a116eb13abd51e17a13fa01eb13a01cd62e354918f92b5e34800)
ostree diff commit new: 1ff9126862 (1ff912686206eb7799ea4ffea4abf656367ba84c38e40fe0d89224b5d4c9eec8)
Upgraded:
ostree-2014.12.7.g98cde4b-1.fc22.test.20141205.2.x86_64
ostree-debuginfo-2014.12.7.g98cde4b-1.fc22.test.20141205.2.x86_64
ostree-grub2-2014.12.7.g98cde4b-1.fc22.test.20141205.2.x86_64

# atomic db diff BOOT^ BOOT
ostree diff commit old: BOOT^ (ba5330508af4a116eb13abd51e17a13fa01eb13a01cd62e354918f92b5e34800)
ostree diff commit new: BOOT (1ff912686206eb7799ea4ffea4abf656367ba84c38e40fe0d89224b5d4c9eec8)
Upgraded:
ostree-2014.12.7.g98cde4b-1.fc22.test.20141205.2.x86_64
ostree-debuginfo-2014.12.7.g98cde4b-1.fc22.test.20141205.2.x86_64
ostree-grub2-2014.12.7.g98cde4b-1.fc22.test.20141205.2.x86_64
```