bc-clijob diff

List the differences between two versions of a job.

Usage

job diff name [before [after]]

where
name of job whose differences to list.
before commit id, or relative index, as listed by job changes. Default is -2 is job is enabled, -1 otherwise.
after commit id, or relative index, as listed by job changes. Default is 0.

read on name

Examples

List the differences between the previous and current versions of a job

BeyondCron % job diff /examples/sleepy

Mode Disabled -> Enabled Calendar + /examples/calendar/weekday/Japan

because the job is enabled, BeyondCron displayed the difference between the current (0), and the 2nd previous (-2) versions of the job. This is because enabling/disabling a job creates a separate version of the job.

List the differences between earlier versions of a job

BeyondCron % job changes /examples/sleepy

Time Commit Action User Host Client ------------------- ------- -- ------- ------ ----------- ------ 14:13:42 today 96f72e6 0 Updated admin example.com bc-cli 14:13:38 today 7e365a9 -1 Updated admin example.com bc-cli 14:12:45 today 8a1ad95 -2 Updated admin example.com bc-cli 15:00:51 02/07/2017 f8885cf -3 Updated jsmith example.com bc-web 15:00:45 02/07/2017 a71d339 -4 Created jsmith example.com bc-web

BeyondCron % job diff /examples/sleepy a71d339 7e365a9

Calendar + /examples/calendar/weekday/Japan

List the differences between the first and current version of a job

BeyondCron % job diff /examples/sleepy -4

Mode Disabled -> Enabled Calendar + /examples/calendar/weekday/Japan

See also