[tor-commits] [torspec/master] dir-spec: Remove the notion of a "current" location in our ed diffs

asn at torproject.org asn at torproject.org
Wed Jan 13 13:39:19 UTC 2021


commit 839348cc65dc3bb4caa06ea4a8f3ed3c25d184b7
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Dec 17 15:40:51 2020 -0500

    dir-spec: Remove the notion of a "current" location in our ed diffs
    
    Tor has never generated or implemented this diff command. Found
    while working on arti.
---
 dir-spec.txt | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/dir-spec.txt b/dir-spec.txt
index 148163d..cdbe00b 100644
--- a/dir-spec.txt
+++ b/dir-spec.txt
@@ -4049,7 +4049,6 @@ E. Limited ed diff format
     - "<n1>,<n2>c"     Replace lines n1 through n2, inclusive, with the
                        following block.
     - "<n1>a"          Append the following block after line n1.
-    - "a"              Append the following block after the current line.
 
    Note that line numbers always apply to the file after all previous
    commands have already been applied.  Note also that line numbers
@@ -4065,12 +4064,6 @@ E. Limited ed diff format
    successfully apply the diff even if they have an unusual encoding for
    the signatures.
 
-   The "current line" is either the first line of the file, if this is
-   the first command, the last line of a block we added in an append or
-   change command, or the line immediate following a set of lines we just
-   deleted (or the last line of the file if there are no lines after
-   that).
-
    The replace and append command take blocks.  These blocks are simply
    appended to the diff after the line with the command.  A line with
    just a period (".") ends the block (and is not part of the lines





More information about the tor-commits mailing list