Git Mailing List Archive mirror
 help / color / mirror / Atom feed
* possible bug for Git - Git incorrectly recognizes which file has been renamed.
@ 2022-11-28 20:06 Tomasz Osak
  0 siblings, 0 replies; only message in thread
From: Tomasz Osak @ 2022-11-28 20:06 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1312 bytes --]

What were you doing before the error occurred? (Steps to reproduce the 
problem)
I was doing the exercise "EXERCISE: A VERSIONED TODO APP" from the end 
of chapter 3 of M. Tsitoar's book "Beginning Git and GitHub":

Create two new files named DONE.txt and WORKING.txt
Stage and commit those files
Rename WORKING.txt to 'IN PROGRES.txt'
Add some text to DONE.txt
Stage 'IN PROGRESS.txt' and DONE.txt
Unstage DONE.txt
Git status
You can see the information: renamed DONE.txt -> 'IN PROGRESS.txt'
Git commit
In the message file the comment is similar: renamed DONE.txt -> 'IN 
PROGRESS.txt'

What should happen? (Expected behavior)
Git status
You should see the message: renamed WORKING.txt -> 'IN PROGRESS.txt'
Git commit
Similarly, in the message file you should see a comment: renamed 
WORKING.txt -> 'IN PROGRESS.txt'

What happened instead? (Actual behavior)
Git status
Shows information: renamed DONE.txt -> 'IN PROGRESS.txt'
Git commit
In the message file also you can see the comment: renamed DONE.txt -> 
'IN PROGRESS.txt'

What is the difference between what should happen and what happened?
Git incorrectly recognizes which file has been renamed (DONE.txt instead 
of WORKING.txt).

Other valuable comments:
Both files (DONE.txt and WORKING.txt) were empty during the first commit.

Regards

Tomasz Osak

[-- Attachment #2: git-bugreport-2022-11-28-2041.txt --]
[-- Type: text/plain, Size: 1982 bytes --]

Dziękujemy za wypełnienie zgłoszenia o błędzie Gita!
Odpowiedz na następujące pytania, aby pomóc nam zrozumieć problem.

Co robiłeś/-aś zanim pojawił się błąd? (Kroki, aby odtworzyć problem)
Wykonywałem ćwiczenie "EXERCISE: A VERSIONED TODO APP" z końca 3. rozdziału książki M. Tsitoara "Beginning Git and GitHub":
Create two new files named DONE.txt and WORKING.txt
Stage and commit those files
Rename WORKING.txt to 'IN PROGRES.txt'
Add some text to DONE.txt
Stage 'IN PROGRESS.txt' and DONE.txt
Unstage DONE.txt
Git status
Widać informację: zmieniono nazwę DONE.txt -> 'IN PROGRESS.txt'
Git commit
W pliku message podobnie jest komentarz: zmieniono nazwę DONE.txt -> 'IN PROGRESS.txt'

Co powinno się stać? (Oczekiwane zachowanie)
Git status
Powinno być widać informację: zmieniono nazwę WORKING.txt -> 'IN PROGRESS.txt'
Git commit
Podobnie w pliku message powinno być widać komentarz: zmieniono nazwę WORKING.txt -> 'IN PROGRESS.txt' 

Co stało się zamiast tego? (Rzeczywiste zachowanie)
Git status
Pokazuje informację: zmieniono nazwę DONE.txt -> 'IN PROGRESS.txt'
Git commit
W pliku message widać komentarz: zmieniono nazwę DONE.txt -> 'IN PROGRESS.txt'

Jaka jest różnica między tym, co powinno się stać, a tym, co się stało?
Git błędnie rozpoznaje którego pliku nazwę zmieniono (DONE.txt zamiast WORKING.txt).

Inne cenne uwagi:
Oba pliki (DONE.txt i WORKING.txt) były puste podczas pierwszego commit.

Przejrzyj resztę zgłoszenia błędu poniżej.
Możesz usunąć wiersze, którymi nie chcesz się dzielić.


[Informacje o systemie]
wersja gita:
git version 2.38.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 6.0.9-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 16 17:50:45 UTC 2022 x86_64
informacje o kompilacji: gnuc: 12.2
informacje o bibliotece libc: glibc: 2.35
$SHELL (typically, interactive shell): /bin/bash


[Włączone skrypty Gita]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-28 20:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-28 20:06 possible bug for Git - Git incorrectly recognizes which file has been renamed Tomasz Osak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).