| File data/plugins/git/statuses.lua changed (mode: 100644) (index 045d05c6b..0b4a4d9f4) |
| ... |
... |
end |
| 82 |
82 |
local function set_file_status(node, path, status, expires) |
local function set_file_status(node, path, status, expires) |
| 83 |
83 |
local slash = path:find('/') |
local slash = path:find('/') |
| 84 |
84 |
if slash == nil then |
if slash == nil then |
| 85 |
|
node.items[path] = status |
|
| 86 |
|
update_dir_status(node, status) |
|
|
85 |
|
-- a file removed from index appears twice: first as 'D ' then as '??', |
|
86 |
|
-- keep the first status |
|
87 |
|
if node.items[path] == nil then |
|
88 |
|
node.items[path] = status |
|
89 |
|
update_dir_status(node, status) |
|
90 |
|
end |
| 87 |
91 |
return node.status |
return node.status |
| 88 |
92 |
end |
end |
| 89 |
93 |
|
|