{"thread":{"id":"39557","subject":"Suggestion: group files in GIT","startedAt":"2015-06-08T08:50:43Z","lastAt":"2015-06-08T19:48:59Z","messageCount":2,"participants":["Konrád Lőrinczi","Christian Couder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"263171","messageId":"CABEDGg8-B1QzkDas1dCcC7QivfOJuaGydki3OpON2T2WFVttFg@mail.gmail.com","threadId":"39557","inReplyTo":null,"subject":"Suggestion: group files in GIT","fromName":"Konrád Lőrinczi","fromEmail":"klorinczi@gmail.com","sentAt":"2015-06-08T08:50:43Z","receivedAt":"2015-06-08T08:50:43Z","isPatch":false,"sender":{"key":"klorinczi@gmail.com","avatar":null},"body":"I would like to group some files, so I can list group files together,\nlist group changes together, filter by group for staging, also order\nby group.\nIt seems, there is no such feature in GIT I would need, so I send it\nas suggestion.\n\nWe can call this feature as \"Group files\" or \"Label files\" (labeling\nis used in Gmail, so this may be also a naming alternative).\n\n\nExample file list I would like to group together into [group1]:\ntheme/header.php\ntheme/footer.php\ntheme/body.php\nlib/theme.php\n\nThey are in different directories, but mostly belongs together, so if\nI group them, then I can work easier with them.\n\n\n- I could select a file group for staging, so only the changes in the\ngroup would be added to stage. Changed files in the group:\n[group1]/theme/header.php\n[group1]/lib/theme.php\n\n\n- I could list files filtered by a group. Files filtered by [group1]:\n[group1]/theme/header.php\n[group1]/theme/footer.php\n[group1]/theme/body.php\n[group1]/lib/theme.php\n\n\n- I could order file list to list group files first, then directory files.\n[group1]/theme/header.php\n[group1]/theme/footer.php\n[group1]/theme/body.php\n[group1]/lib/theme.php\nother/files.php\n\n\nI listed just a few basic cases, when grouping/labeling could be\nuseful, but there may be more.\n\n\nPlease consider implementing this feature into GIT.\n\n\nThanks,\nKonrad Lorinczi\n"},{"id":"263295","messageId":"CAP8UFD24qiRzfPSkCppV-yPkoTVuwkJ+FDUGsv0Zrf66yOedOg@mail.gmail.com","threadId":"39557","inReplyTo":"CABEDGg8-B1QzkDas1dCcC7QivfOJuaGydki3OpON2T2WFVttFg@mail.gmail.com","subject":"Re: Suggestion: group files in GIT","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2015-06-08T19:48:59Z","receivedAt":"2015-06-08T19:48:59Z","isPatch":false,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"On Mon, Jun 8, 2015 at 10:50 AM, Konrád Lőrinczi <klorinczi@gmail.com> wrote:\n> I would like to group some files, so I can list group files together,\n> list group changes together, filter by group for staging, also order\n> by group.\n> It seems, there is no such feature in GIT I would need, so I send it\n> as suggestion.\n>\n> We can call this feature as \"Group files\" or \"Label files\" (labeling\n> is used in Gmail, so this may be also a naming alternative).\n>\n>\n> Example file list I would like to group together into [group1]:\n> theme/header.php\n> theme/footer.php\n> theme/body.php\n> lib/theme.php\n\nCan't you use a shell variable like:\n\ngroup1=\"theme/header.php theme/footer.php theme/body.php lib/theme.php\"\n\n?\n\n> They are in different directories, but mostly belongs together, so if\n> I group them, then I can work easier with them.\n>\n>\n> - I could select a file group for staging, so only the changes in the\n> group would be added to stage.\n\ngit add $group1\n\n> Changed files in the group:\n> [group1]/theme/header.php\n> [group1]/lib/theme.php\n>\n>\n> - I could list files filtered by a group. Files filtered by [group1]:\n> [group1]/theme/header.php\n> [group1]/theme/footer.php\n> [group1]/theme/body.php\n> [group1]/lib/theme.php\n\nls -l $group1\n\n> - I could order file list to list group files first, then directory files.\n> [group1]/theme/header.php\n> [group1]/theme/footer.php\n> [group1]/theme/body.php\n> [group1]/lib/theme.php\n> other/files.php\n\nI am not sure I see what you want to do with that.\n"}]}