DIFFBREAKER(1)

NAME
diffbreaker - unified diff cherry picker / patch set editor

SYNOPSIS
diffbreaker [-s] -i input file -o output file

DESCRIPTION
The diffbreaker command allows the user to create incremental patches from a single unified diff interactively using curses(3).

-i input file
    Unified diff input file.

-o output file / beginning of file path.
    Output location / file. A file name of "-" means to write to stderr, useful for redirecting the output.

[-s]
    If the [-s] switch is given the output file argument is a prefix and path for files to be output. Files are written from output file.1.diff etc. If no [-s] switch is not given the output file is appended to on each subsequent write.

KEYS
diffbreaker accepts the following keys:

[SPACE]
    Select / Un-select change.

[l] Redraw the current screen.

[j] Move down 1 line.

[k] Move up 1 line.

[G] Move to the beginning of the diff.

[g] Move to the end of the diff.

[p] Move to previous file in multi-file diff.

[n] Move to next file in multi-file diff.

[/] Search downward / find next occurrence in diff.

[?] Search upward / find previous occurrence in diff.

[w] Write changes to output file(s). Clearing sections from the screen in which all changes within a block or file have been written and return to the top of the diff.

[q] Quit the program, DISCARDING any unsaved changes.

STATUS LINE
At the bottom of the screen the number of unwritten lines in the buffer is displayed.

SEE ALSO
curses(3) diff(1) patch(1)

AUTHORS
Nathanial Sloss