git/list[1] front-page[2] threads[3] people[4] search[5] about
 

bug report: add/delete instead of rename

From
SISergey Ivanov <icegood1980@gmail.com>
Date
Nov 18, 2022, 19:47 UTC
Message-ID
<CAJCbrz5+LC9g34x0E_2HAezFNaMGW7ECSA9iXpHgnAHGoQNzHA@mail.gmail.com>

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened?

hard rename of files and directories via 'git mv' . git status before commit for some related files:

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)

new file: sepolicy/private/file.te renamed: sepolicy/components/icl_infotainment.te -> sepolicy/private/icl_infotainment.te renamed: sepolicy/common/hal_icl_infotainment.te -> sepolicy/public/icl_infotainment.te renamed: sepolicy/common/file.te -> sepolicy/public/file.te

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
modified:   sepolicy/private/icl_infotainment.te
modified:   sepolicy/public/file.te
What did you expect to happen?
All related nodes are renamed during commit
What happened instead? (Actual behavior)

delete mode 100644 sepolicy/common/file.te delete mode 100644 sepolicy/components/icl_infotainment.te create mode 100644 sepolicy/private/icl_infotainment.te create mode 100644 sepolicy/private/file.te create mode 100644 sepolicy/public/file.te rename sepolicy/{common/hal_icl_infotainment.te => public/icl_infotainment.te} (90%)

What's different between what you expected and what actually happened?

Instead of renaming 2 more pairs of create/delete formed. It makes harder to see changes on gitlab UI after push.

Anything else you want to add:

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.37.2 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 5.19.0-23-generic #24-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct 14 15:39:57 UTC 2022 x86_64 compiler info: gnuc: 12.1 libc info: glibc: 2.36 $SHELL (typically, interactive shell): /bin/bash

[Enabled Hooks] not run from a git repository - no hooks to show

-- 
Kind regards,
Sergey Ivanov
Next: Ævar Arnfjörð Bjarmason
Message 1 of 3 in “bug report: add/delete instead of rename”
  1. Sergey IvanovNov 18, 2022
  2. Ævar Arnfjörð BjarmasonNov 18, 2022
  3. Sergey IvanovNov 18, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.