From: Jacob Keller Date: Fri, 25 Mar 2016 19:20:48 GMT Subject: Re: [RFC/GSOC] Git Beginner | Warnings for potentially destructive commands Message-ID: In-Reply-To: On Fri, Mar 25, 2016 at 10:38 AM, Junio C Hamano wrote: > The above two examples make me wonder if these should be static > text. "ggit rebase" and "ggit reset" have full information of the > concrete branch names, commit object names and the actual topology > of the history, so it should be able to give a description more > tailored to the user's situation. Instead of giving a fictional > drawing with "For instance, Current state:", it should be able to > draw the actual before-and-after picture based on where the end-user > actually is. I see _some_ attempts (e.g. with "", mention of > "(master)" and $BASE_BRANCH, you may have meant that they will be > replaced with actual values), but I suspect that telling some truth > (i.e. use of the real branch names) while showing pictures that do > not match the reality (i.e. if the topology and the description are > done as fixed text) would only confuse the users. If possible, I would suggest aiming for generating the actual topology that the user is seeing, customized so that it gives relevenat information, rather than static examples. It may be that it is not possible or the effort is too large for such a project. If the latter is the case, then using only static text is better than trying to use some but not all the available information, as Junio points out above. Regards, Jake