/swish/lib/gitty.pl
All Application Manual Name SummaryHelp

  • swish
    • lib
      • messages.pl
      • paths.pl -- Setup SWISH search paths
      • config.pl -- Make HTTP locations known to JSON code
      • page.pl -- Provide the SWISH application as Prolog HTML component
      • help.pl -- SWISH help system
      • search.pl -- SWISH search from the navigation bar
      • chat.pl -- The SWISH collaboration backbone
      • storage.pl -- Store files on behalve of web clients
      • gitty.pl -- Single-file GIT like version system
        • gitty_open/2
        • gitty_driver/2
        • gitty_close/1
        • gitty_file/3
        • gitty_file/4
        • gitty_create/5
        • gitty_update/5
        • gitty_data/4
        • gitty_commit/3
        • gitty_plain_commit/3
        • gitty_history/4
        • gitty_fsck/1
        • fsck_object/2
        • gitty_save/4
        • gitty_load/4
        • gitty_hash/2
        • delete_object/2
        • gitty_reserved_meta/1
        • is_gitty_hash/1
        • delete_head/2
        • set_head/3
        • gitty_diff/4
        • data_diff/3
        • udiff_string/2
      • gitty_driver_bdb.pl -- Gitty BDB driver
      • gitty_driver_files.pl -- Gitty plain files driver
      • swish_redis.pl -- Redis stream connection
      • patch.pl -- Run patch program
      • authenticate.pl -- Authentication access for SWISH
      • pep.pl -- SWISH PEP (Policy Enforcement Point)
      • avatar.pl -- Avatar management
      • noble_avatar.pl -- Noble Avatar generator
      • chatstore.pl -- Store chat messages
      • content_filter.pl -- Ban list content filter
      • include.pl -- Support :- include(File) from SWISH
      • swish_csv.pl -- Support CSV output from a Pengines server
      • examples.pl -- Serve example files
      • md_eval.pl -- Provide evaluable markdown
      • profiles.pl
      • highlight.pl -- Highlight token server
      • markdown.pl -- SWISH Notebook markdown support
      • template_hint.pl -- Generate template hints for CondeMirror
      • render.pl -- SWISH term-rendering support
      • web.pl -- Serve /plugin
      • version.pl -- Manage software versions
      • oauth2.pl -- Oauth2 based login
      • swish_debug.pl -- Print debug messages and test assertions
      • data_source.pl -- Cached data access
      • logging.pl -- Add SWISH query execution to the HTTP log file
      • bootstrap.pl -- Bootstrap form generator
      • form.pl -- Form handling utilities
      • r_swish.pl
      • download.pl -- Provide a button for downloading data
      • cron.pl -- Schedule HTTP server maintenance tasks
      • http_version.pl -- Serve version details over HTTP
      • session.pl -- Setup SWISH sessions
      • trace.pl --
      • projection.pl -- Define the projection
      • attvar.pl
      • jquery.pl -- Call jQuery on the SWISH interface
      • dashboard.pl -- Provide non-programmer query execution
      • html_output.pl -- SWISH HTML Output
      • swish_diagnostics.pl
      • procps.pl -- Get process statistics from Linux /proc
      • flags.pl
      • swish_chr.pl -- Make CHR available in SWISH
 data_diff(+Data1, +Data2, -UDiff) is det
Diff two data strings line-by-line. UDiff is a list of terms of the form below, where L1 and L2 provide the starting line in Data1 and Data2 and S1 and S2 provide the number of affected lines.
udiff(L1,S1,L2,S2,Diff)

Diff is a list holding

+ Line
Line was added to Data1 to get Data2
- Line
Line was deleted from Data1 to get Data2
Line1 - Line2
Line was replaced
=(Line)
Line is identical (context line).