Skip to content

What is the format of clink_history? #229

Answered by chrisant996
endolith asked this question in Q&A
Discussion options

You must be logged in to vote
  • The first line (beginning with |CTAG) is important for preventing corruption.
  • The rest of the lines are commands.
  • When a line is deleted, its first character is replaced with a pipe character |.
  • Periodically Clink will compact the file, by removing all deleted lines (i.e. beginning with a pipe character |) and removing old lines until the total number of lines is within the history.max_lines limit.

If you are seeing lines "lose" a pipe character at the beginning, then that is probably a result of the sync conflicts. There's certainly not anything Clink ever does that can make a pipe character disappear (apart from deleting the entire line, when compacting the history file).

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@endolith
Comment options

@chrisant996
Comment options

@endolith
Comment options

@endolith
Comment options

@endolith
Comment options

Answer selected by endolith
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants