"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Ted Bullock <tbullock@comlore.com>
Subject:
tog unable to view history of renamed file
To:
gameoftrees@openbsd.org
Date:
Wed, 29 Mar 2023 20:25:45 -0600

Download raw body.

Thread
Hi,

I'm working back through the upstream libevent history and they renamed
evbuffer.c to bufferevent.c in something like 2009.

I wanted to pull up the commit history on the old file using tog so I
rewound the repository to the commit prior to the rename but tog doesn't
seem to be able to see the file as part of the commit history despite it
now existing there on the disk.

I'm seeing this:

spikard$ ls -l evbuffer.c
-rw-r--r--  1 tbullock  tbullock  17734 Mar 29 20:15 evbuffer.c

spikard$ tog evbuffer.c
tog: 'evbuffer.c' is no known command or path
usage: tog [-hV] command [arg ...]
lazy usage: tog path
commands: log diff blame tree ref

Log also fails, also for presumably the same reason.

spikard$ tog log evbuffer.c
tog: evbuffer.c: no such entry found in tree

Is this a bug or am I just not reading the manual correctly again.

Ideally I would like to see the commit history in tog transcend the
rename operation, but failing that I still would expect the tool to pull
the history of the file when rewound to when it still exists at the old
name.

-- 
Ted Bullock <tbullock@comlore.com>