X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=dot.go;h=19994ded165d8162e23e6c5ab467a92d21765e3a;hb=HEAD;hp=a77ec69197fda3e1b2c07daf950de2a542f73d8c;hpb=6dce71355599d4caf8267f6f02520037480f7ba3;p=goredo.git diff --git a/dot.go b/dot.go index a77ec69..19994de 100644 --- a/dot.go +++ b/dot.go @@ -1,19 +1,17 @@ -/* -goredo -- djb's redo implementation on pure Go -Copyright (C) 2020-2023 Sergey Matveev - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ +// goredo -- djb's redo implementation on pure Go +// Copyright (C) 2020-2024 Sergey Matveev +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . // Dependency DOT graph generation @@ -52,8 +50,8 @@ func dotWalker(data map[DotNodes]bool, tgt *Tgt) (map[DotNodes]bool, error) { switch typ { case DepTypeIfcreate: data[DotNodes{tgt.rel, NewTgt(path.Join(tgtH, string(chunk))).rel}] = true - case DepTypeIfchange, DepTypeIfchangeDummy: - if typ == DepTypeIfchangeDummy { + case DepTypeIfchange, DepTypeIfchangeNonex: + if typ == DepTypeIfchangeNonex { name = string(chunk) } else { name = string(chunk[InodeLen+HashLen:])