{"thread":{"id":"49396","subject":"","startedAt":"2018-09-21T08:43:44Z","lastAt":"2018-09-21T08:43:44Z","messageCount":1,"participants":["FIGADERE, LAURENT"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"358563","messageId":"DB6PR0201MB245532DA30DD1EA21C3CF0FAE6120@DB6PR0201MB2455.eurprd02.prod.outlook.com","threadId":"49396","inReplyTo":null,"subject":"","fromName":"FIGADERE, LAURENT","fromEmail":"laurent.figadere@atos.net","sentAt":"2018-09-21T08:43:39Z","receivedAt":"2018-09-21T08:43:44Z","isPatch":false,"sender":{"key":"laurent.figadere@atos.net","avatar":null},"body":"Hi,\n\nComing back to you with some updates.\n\nI understand finally interest of difference between 'from' and 'at'.\n\nThe point is: is it a bug if the 'git status' provide the origin/HEAD instead of HEAD SHA1? \n\nIf you want a test case with screenshots, let me know.\n\nRegards,\nLaurent\n\n_____________________________________________\nFrom: FIGADERE, LAURENT \nSent: Thursday, September 20, 2018 3:26 PM\nTo: 'git@vger.kernel.org' <mailto:git@vger.kernel.org>\nSubject: git status - difference between from and at\n\n\nHi guys,\n\nRecently I used git on a top repository which integrated few other submodules.\n\nThe 'git submodule' command provides the right information on SHA1 used for each submodule.\nWhen I 'cd' into a submodule and run the command 'git status', I got this message:\nHEAD detached from 55846b8\nnothing to commit, working tree clean\nWhich was not the right checked out SHA1: it should be 2422597\n\nI verified in a git log command, and I was using really the '2422597' SHA1 and not 55846b8.\nThe command: \n      git log --graph --oneline --abbrev-commit --all\nOutput:\n*   55846b8 (tag: 01.050.002, origin/master, origin/HEAD, master) \n...\n*   2422597 (HEAD)\n...\n\nAfter running :\n\tgit co master\n\tcd ..\n\tgit submodule update\n\nI ran again git status command inside the submodule.\nThis time, I got this message:\nHEAD detached at 2422597\nnothing to commit, working tree clean\n\nFirst question: do you confirm that 'HEAD detached FROM' provides the SHA1 of origin/HEAD?\nAnd 'HEAD detached AT' provides the SHA1 we are using : HEAD?\n\nSecond question: what is the goal of such information?\nBecause from my opinion it can be difficult for end users to understand what SHA1 they are using in the submodule.\n\nThanks by advance for you feedbacks.\n\nRegards,\nLaurent Figadere\n\n\n"}]}