From 65cd69217cde5085a29458608cd4b91fa94bbba5 Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Wed, 21 Sep 2022 18:46:50 +0000 Subject: [PATCH 1/2] Added a comment --- ..._49e075aaa89e60fe1d35513dd4d4d755._comment | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 doc/bugs/reports_file___34__modified__34___whenever_it_is_not/comment_2_49e075aaa89e60fe1d35513dd4d4d755._comment diff --git a/doc/bugs/reports_file___34__modified__34___whenever_it_is_not/comment_2_49e075aaa89e60fe1d35513dd4d4d755._comment b/doc/bugs/reports_file___34__modified__34___whenever_it_is_not/comment_2_49e075aaa89e60fe1d35513dd4d4d755._comment new file mode 100644 index 0000000000..d27645608b --- /dev/null +++ b/doc/bugs/reports_file___34__modified__34___whenever_it_is_not/comment_2_49e075aaa89e60fe1d35513dd4d4d755._comment @@ -0,0 +1,46 @@ +[[!comment format=mdwn + username="yarikoptic" + avatar="http://cdn.libravatar.org/avatar/f11e9c84cb18d26a1748c33b48c924b4" + subject="comment 2" + date="2022-09-21T18:46:50Z" + content=""" +d'oh forgot to show that I have tried that one too. Here is everything at once again with `git diff` and again doing checksums (that should have been different in my prev examples as well if different only in tree but not in index): + +```shell +(dandisets) dandi@drogon:/mnt/backup/dandi/dandisets/000026$ git status +On branch draft +Your branch is up to date with 'github/draft'. + +Changes not staged for commit: + (use \"git add ...\" to update what will be committed) + (use \"git restore ...\" to discard changes in working directory) + modified: .dandi/assets.json + + +It took 3.19 seconds to enumerate untracked files. 'status -uno' +may speed it up, but you have to be careful not to forget to add +new files yourself (see 'git help status'). +no changes added to commit (use \"git add\" and/or \"git commit -a\") +(dandisets) dandi@drogon:/mnt/backup/dandi/dandisets/000026$ git diff +(dandisets) dandi@drogon:/mnt/backup/dandi/dandisets/000026$ git diff --cached +(dandisets) dandi@drogon:/mnt/backup/dandi/dandisets/000026$ sha256sum .dandi/assets.json +6a0a91c4158d316ab8ad9bd8ebf7579b9c3c579e1035c48134246b6a5d2f6f14 .dandi/assets.json +(dandisets) dandi@drogon:/mnt/backup/dandi/dandisets/000026$ git show -- .dandi/assets.json +commit b859efed7ddb2ff31cc26168f40676c572d2798f (HEAD -> draft, github/draft, github/HEAD) +Author: DANDI User +Date: Fri Sep 16 22:22:29 2022 +0000 + + [backups2datalad] 66 files added + +diff --git a/.dandi/assets.json b/.dandi/assets.json +index d3ef95e1ee..62fe372810 100644 +--- a/.dandi/assets.json ++++ b/.dandi/assets.json +@@ -1 +1 @@ +-/annex/objects/SHA256E-s69400783--8b576786d3926ab0e84809b4131cdc5a8f631674d378afa343e7dcd84f011c90.json ++/annex/objects/SHA256E-s69507227--6a0a91c4158d316ab8ad9bd8ebf7579b9c3c579e1035c48134246b6a5d2f6f14.json +(dandisets) dandi@drogon:/mnt/backup/dandi/dandisets/000026$ git annex status +M ./.dandi/assets.json + +``` +"""]] From ad31c9fc196943f988989d97dbeafe2d8954df66 Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Wed, 21 Sep 2022 18:49:07 +0000 Subject: [PATCH 2/2] Added a comment --- ..._2a08321045a8ede5c3b5a690232020b3._comment | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 doc/bugs/reports_file___34__modified__34___whenever_it_is_not/comment_3_2a08321045a8ede5c3b5a690232020b3._comment diff --git a/doc/bugs/reports_file___34__modified__34___whenever_it_is_not/comment_3_2a08321045a8ede5c3b5a690232020b3._comment b/doc/bugs/reports_file___34__modified__34___whenever_it_is_not/comment_3_2a08321045a8ede5c3b5a690232020b3._comment new file mode 100644 index 0000000000..a5bb342722 --- /dev/null +++ b/doc/bugs/reports_file___34__modified__34___whenever_it_is_not/comment_3_2a08321045a8ede5c3b5a690232020b3._comment @@ -0,0 +1,30 @@ +[[!comment format=mdwn + username="yarikoptic" + avatar="http://cdn.libravatar.org/avatar/f11e9c84cb18d26a1748c33b48c924b4" + subject="comment 3" + date="2022-09-21T18:49:06Z" + content=""" +the workaround you suggest elsewhere for \"cosmetic\" problem works here too + +``` +(dandisets) dandi@drogon:/mnt/backup/dandi/dandisets/000026$ git status +On branch draft +Your branch is up to date with 'github/draft'. + +Changes not staged for commit: + (use \"git add ...\" to update what will be committed) + (use \"git restore ...\" to discard changes in working directory) + modified: .dandi/assets.json + +no changes added to commit (use \"git add\" and/or \"git commit -a\") +(dandisets) dandi@drogon:/mnt/backup/dandi/dandisets/000026$ git update-index -q --refresh .dandi/assets.json +(dandisets) dandi@drogon:/mnt/backup/dandi/dandisets/000026$ git status +On branch draft +Your branch is up to date with 'github/draft'. + +nothing to commit, working tree clean + +``` + +but since we are relying on output from `status`, it is not just a \"cosmetic\" issue. IMHO if such `update-index` is needed, it should have been done by git-annex automagically somehow/sometime. +"""]]