{"thread":{"id":"56739","subject":"Questions, improvements","startedAt":"2021-10-19T17:38:21Z","lastAt":"2021-10-21T01:01:41Z","messageCount":7,"participants":["BARDOT Jérôme","Jeff King","Johannes Schindelin","brian m. carlson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"439037","messageId":"9ad3d241-5441-9fbd-76a4-7c47c6a1b70e@gmail.com","threadId":"56739","inReplyTo":null,"subject":"Questions, improvements","fromName":"BARDOT Jérôme","fromEmail":"bardot.jerome@gmail.com","sentAt":"2021-10-19T17:38:16Z","receivedAt":"2021-10-19T17:38:21Z","isPatch":false,"sender":{"key":"bardot.jerome@gmail.com","avatar":null},"body":"Hello,\n\nIt's my first email here.\nMaybe questions have been already debate.\n\n1)\n\nWhy git not embed by default some gitinore rules (and can be \"disable\"\nafter).\nAll the time i have to add all operating system stuff, all editor stuff.\n\n2)\n\nI need a domain name / uri / ip base way to choose auth information.\ni find some examples in past but not as smart as what i want. (Maybe i\nmiss something)\n\n3)\n\nFor auth client side can we use tools like Pass and or identity manager.\n\n\n\nThx.\nj.\n\nPS : Feel free to send me RTFM (with link) if needed.\n"},{"id":"439045","messageId":"YW85Gs8aU9rrBDOv@coredump.intra.peff.net","threadId":"56739","inReplyTo":"9ad3d241-5441-9fbd-76a4-7c47c6a1b70e@gmail.com","subject":"Re: Questions, improvements","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2021-10-19T21:31:06Z","receivedAt":"2021-10-19T21:31:13Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Oct 19, 2021 at 07:38:16PM +0200, BARDOT Jérôme wrote:\n\n> 1)\n> \n> Why git not embed by default some gitinore rules (and can be \"disable\"\n> after).\n> All the time i have to add all operating system stuff, all editor stuff.\n\nI think you may have a hard time getting people to agree on what should\ngo into those rules. ;)\n\nBut you may find core.excludesFile (documented in \"git help config\")\nhelpful. You can set up your personal set of files once, and they will\nbe used in every repository.\n\n> 2)\n> \n> I need a domain name / uri / ip base way to choose auth information.\n> i find some examples in past but not as smart as what i want. (Maybe i\n> miss something)\n> \n> 3)\n> \n> For auth client side can we use tools like Pass and or identity manager.\n\nI'm not entirely sure I understand your questions here, but I think\nyou're looking for credential helpers? Try \"git help credentials\" for an\noverview.\n\nThere are helpers which interact with common OS secure storage systems\n(like osxkeychain, libsecret, etc). But you can also write your own\nlittle scripts, and restrict them based on URLs.\n\nSo for instance I use this config to pull a GitHub PAT out of the \"pass\"\ntool:\n\n  [credential \"https://github.com\"]\n  username = peff\n  helper = \"!f() { test $1 = get && echo password=`pass github/token`; }; f\"\n\n-Peff\n"},{"id":"439087","messageId":"nycvar.QRO.7.76.6.2110201340370.56@tvgsbejvaqbjf.bet","threadId":"56739","inReplyTo":"YW85Gs8aU9rrBDOv@coredump.intra.peff.net","subject":"Re: Questions, improvements","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2021-10-20T11:42:50Z","receivedAt":"2021-10-20T11:43:05Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 19 Oct 2021, Jeff King wrote:\n\n> On Tue, Oct 19, 2021 at 07:38:16PM +0200, BARDOT Jérôme wrote:\n>\n> > 2)\n> >\n> > I need a domain name / uri / ip base way to choose auth information.\n> > i find some examples in past but not as smart as what i want. (Maybe i\n> > miss something)\n> >\n> > 3)\n> >\n> > For auth client side can we use tools like Pass and or identity manager.\n>\n> I'm not entirely sure I understand your questions here, but I think\n> you're looking for credential helpers? Try \"git help credentials\" for an\n> overview.\n>\n> There are helpers which interact with common OS secure storage systems\n> (like osxkeychain, libsecret, etc). But you can also write your own\n> little scripts, and restrict them based on URLs.\n>\n> So for instance I use this config to pull a GitHub PAT out of the \"pass\"\n> tool:\n>\n>   [credential \"https://github.com\"]\n>   username = peff\n>   helper = \"!f() { test $1 = get && echo password=`pass github/token`; }; f\"\n\nA quite complete, cross-platform credential helper (included in Git for\nWindows and enabled by default, but it also works on macOS and on Linux)\nis Git Credential Manager:\nhttps://github.com/microsoft/Git-Credential-Manager-Core/\n\nIt comes with backends for some major Git hosters and is pretty\nhassle-free, once configured.\n\nCiao,\nJohannes\n"},{"id":"439093","messageId":"9eafffc8-8576-f1ea-45a3-ae4c337db7f1@gmail.com","threadId":"56739","inReplyTo":"YW85Gs8aU9rrBDOv@coredump.intra.peff.net","subject":"Re: Questions, improvements","fromName":"BARDOT Jérôme","fromEmail":"bardot.jerome@gmail.com","sentAt":"2021-10-20T12:25:32Z","receivedAt":"2021-10-20T12:25:37Z","isPatch":false,"sender":{"key":"bardot.jerome@gmail.com","avatar":null},"body":"\nOn 19/10/2021 23:31, Jeff King wrote:\n> On Tue, Oct 19, 2021 at 07:38:16PM +0200, BARDOT Jérôme wrote:\n>\n>> 1)\n>>\n>> Why git not embed by default some gitinore rules (and can be \"disable\"\n>> after).\n>> All the time i have to add all operating system stuff, all editor stuff.\n> I think you may have a hard time getting people to agree on what should\n> go into those rules. ;)\n\nYes but for certain things i think we will are most of us agree. (In\nprofessional context)\n\nTemp files for Operating System, file system, text editor and IDE.\n\nIt can be also a great way to improve interoperability (between tools)\nand identify/improve tools without personnal and team configuration.\n\nKeep repositories clean and easily usable with an abstraction layer of\ntools used to do things (editor, OS, CI, etc) is what i want. \n\n> But you may find core.excludesFile (documented in \"git help config\")\n> helpful. You can set up your personal set of files once, and they will\n> be used in every repository.\n>\n>> 2)\n>>\n>> I need a domain name / uri / ip base way to choose auth information.\n>> i find some examples in past but not as smart as what i want. (Maybe i\n>> miss something)\n>>\n>> 3)\n>>\n>> For auth client side can we use tools like Pass and or identity manager.\n> I'm not entirely sure I understand your questions here, but I think\n> you're looking for credential helpers? Try \"git help credentials\" for an\n> overview.\nyou understand well\n> There are helpers which interact with common OS secure storage systems\n> (like osxkeychain, libsecret, etc). But you can also write your own\n> little scripts, and restrict them based on URLs.\n>\n> So for instance I use this config to pull a GitHub PAT out of the \"pass\"\n> tool:\n>\n>   [credential \"https://github.com\"]\n>   username = peff\n>   helper = \"!f() { test $1 = get && echo password=`pass github/token`; }; f\"\n\nLook great i will test\n\n> -Peff\n"},{"id":"439095","messageId":"9009a3af-9d21-cad1-6a4c-e1a81ece6f83@gmail.com","threadId":"56739","inReplyTo":"nycvar.QRO.7.76.6.2110201340370.56@tvgsbejvaqbjf.bet","subject":"Re: Questions, improvements","fromName":"BARDOT Jérôme","fromEmail":"bardot.jerome@gmail.com","sentAt":"2021-10-20T12:40:10Z","receivedAt":"2021-10-20T12:40:34Z","isPatch":false,"sender":{"key":"bardot.jerome@gmail.com","avatar":null},"body":"On 20/10/2021 13:42, Johannes Schindelin wrote:\n> Hi,\n>\n> On Tue, 19 Oct 2021, Jeff King wrote:\n>\n>> On Tue, Oct 19, 2021 at 07:38:16PM +0200, BARDOT Jérôme wrote:\n>>\n>>> 2)\n>>>\n>>> I need a domain name / uri / ip base way to choose auth information.\n>>> i find some examples in past but not as smart as what i want. (Maybe i\n>>> miss something)\n>>>\n>>> 3)\n>>>\n>>> For auth client side can we use tools like Pass and or identity manager.\n>> I'm not entirely sure I understand your questions here, but I think\n>> you're looking for credential helpers? Try \"git help credentials\" for an\n>> overview.\n>>\n>> There are helpers which interact with common OS secure storage systems\n>> (like osxkeychain, libsecret, etc). But you can also write your own\n>> little scripts, and restrict them based on URLs.\n>>\n>> So for instance I use this config to pull a GitHub PAT out of the \"pass\"\n>> tool:\n>>\n>>   [credential \"https://github.com\"]\n>>   username = peff\n>>   helper = \"!f() { test $1 = get && echo password=`pass github/token`; }; f\"\n> A quite complete, cross-platform credential helper (included in Git for\n> Windows and enabled by default, but it also works on macOS and on Linux)\n> is Git Credential Manager:\n> https://github.com/microsoft/Git-Credential-Manager-Core/\n\nWe only use GNU\\Linux for our work, i see there is .deb, are they\nintegrated in official debian repositories (stable) ?\n\nWe avoid tools not Libre and not package by default in debian. (with few\nexeptions) \n\nAnd for what i see it's using C# and Microsoft not really play\nintegration by putting stuff on their side instead of working with the\nGNU community (but it's just my opinion).\n\n> It comes with backends for some major Git hosters and is pretty\n> hassle-free, once configured.\nPretty sure it is.\n> Ciao,\n> Johannes\n\nThx for the information by the way\n\n\n"},{"id":"439155","messageId":"YXC20wWfiu0wHel/@camp.crustytoothpaste.net","threadId":"56739","inReplyTo":"9009a3af-9d21-cad1-6a4c-e1a81ece6f83@gmail.com","subject":"Re: Questions, improvements","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2021-10-21T00:39:47Z","receivedAt":"2021-10-21T00:40:42Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2021-10-20 at 12:40:10, BARDOT Jérôme wrote:\n> On 20/10/2021 13:42, Johannes Schindelin wrote:\n> > A quite complete, cross-platform credential helper (included in Git for\n> > Windows and enabled by default, but it also works on macOS and on Linux)\n> > is Git Credential Manager:\n> > https://github.com/microsoft/Git-Credential-Manager-Core/\n> \n> We only use GNU\\Linux for our work, i see there is .deb, are they\n> integrated in official debian repositories (stable) ?\n> \n> We avoid tools not Libre and not package by default in debian. (with few\n> exeptions) \n\nI believe this tool is open source, but it requires .NET Core, which is\nnot in Debian, so it's not included.  I don't know if it will work with\nMono instead, which is packaged in Debian.\n\nI _think_ Debian prefers Mono over .NET Core because it is substantially\nmore portable in terms of architecture support.\n-- \nbrian m. carlson (he/him or they/them)\nToronto, Ontario, CA\n"},{"id":"439157","messageId":"YXC7vfnnEQClQu4N@camp.crustytoothpaste.net","threadId":"56739","inReplyTo":"9eafffc8-8576-f1ea-45a3-ae4c337db7f1@gmail.com","subject":"Re: Questions, improvements","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2021-10-21T01:00:45Z","receivedAt":"2021-10-21T01:01:41Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2021-10-20 at 12:25:32, BARDOT Jérôme wrote:\n> \n> On 19/10/2021 23:31, Jeff King wrote:\n> > I think you may have a hard time getting people to agree on what should\n> > go into those rules. ;)\n> \n> Yes but for certain things i think we will are most of us agree. (In\n> professional context)\n> \n> Temp files for Operating System, file system, text editor and IDE.\n\nUnfortunately, there are a lot of different patterns here.  Some IDEs\nuse entire directories, and sometimes those patterns conflict with\ncommon patterns used elsewhere.\n\nFor example, GitHub's recommended Visual Studio .gitignore[0] recommends\nexcluding directories \"Bin\" and \"bin\".  However, it is extremely common\nfor folks to have a \"bin\" directory in their dotfiles (I do, at least),\nand that would cause problems.\n\nIt is generally recommended that projects try to remain reasonably\neditor independent so that people can use whichever editor they prefer.\nAs a result, many projects don't include any editor-specific .gitignore\npatterns, and rely on each individual user using their\n`core.excludesfile` settings to ignore their own editor's and operating\nsystem's files (e.g., Vim swap files).  Only editor-agnostic files, such\nas .editorconfig files or files to run linting or formatting tools, are\nincluded.\n\nAlso, when you try to pick common patterns, you end up with having to\ndecide what \"common\" means.  Should we support every editor's temporary\nfiles, no matter how infrequently used?  Should we only support the top\nN editors?  How do we decide which editors we should support?  How do we\ndecide which OSes we should support?  Should all patterns be case\ninsensitive to support the most OSes, or case sensitive to prevent false\npositives?  How do we limit the rules to avoid bad performance from\ngiant lists of rules?  How do we resolve conflicts between these rules?\n\nAs you can see, it becomes quite sticky pretty quickly, and we're\nbasically bound to make somebody unhappy.  Letting each project decide\nthe appropriate rules for them may not please everybody, but it at least\ndispleases far fewer people, and it lets the people most competent to\ndecide those rules (the project leaders) make the decision.\n\n[0] https://github.com/github/gitignore/blob/master/VisualStudio.gitignore\n-- \nbrian m. carlson (he/him or they/them)\nToronto, Ontario, CA\n"}]}